protected void Page_Load(object sender, EventArgs e) { try { StepManager SM = new StepManager(); int id = Convert.ToInt32(Request["id"]); StepTBx step = SM.GetByID(id); step.status = -1; SM.Save(); Response.Write(JsonConvert.SerializeObject(new { success = 1 })); } catch (Exception ex) { Response.Write(JsonConvert.SerializeObject(new { success = -1, error = ex })); } }
protected void Page_Load(object sender, EventArgs e) { StepManager SM = new StepManager(); step = SM.GetByID(Convert.ToInt32(Request.QueryString["id"])); }