Review and cancel do not need design page, just write back code
Audit:
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingsystem.web;usingSystem.Web.UI;usingSystem.Web.UI.WebControls; Public Partial classshenhe:system.web.ui.page{PrivateUsersdatacontext context =NewUsersdatacontext (); protected voidPage_Load (Objectsender, EventArgs e) { stringUID = request["UID"]. ToString (); Users Data= Context.users.Where (p = = P.username = =uid). First (); Data. State=1; Context. SubmitChanges (); Response.Redirect ("main.aspx"); }}
Cancel:
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingsystem.web;usingSystem.Web.UI;usingSystem.Web.UI.WebControls; Public Partial classquxiao:system.web.ui.page{PrivateUsersdatacontext context =NewUsersdatacontext (); protected voidPage_Load (Objectsender, EventArgs e) { stringUID = request["UID"]. ToString (); Users Data= Context.users.Where (p = = P.username = =uid). First (); Data. State=2; Context. SubmitChanges (); Response.Redirect ("main.aspx"); }}
20151223:web: Audit: Audit and Cancel