protected void GridView3_RowDeleting(object sender, GridViewDeleteEventArgs e) { Educom.clsopt obj = new Educom.clsopt(); Educom.clsoptprp objprp = new Educom.clsoptprp(); objprp.optcod = Convert.ToInt32(GridView3.DataKeys [e.RowIndex][0]); obj.delete_rec(objprp); e.Cancel = true; }
protected void Button4_Click(object sender, EventArgs e) { Educom.clsopt obj = new Educom.clsopt(); Educom.clsoptprp objprp = new Educom.clsoptprp(); objprp.optdsc = TextBox3.Text; objprp.optqstcod = Convert.ToInt32(ViewState["qstcod"]); if (CheckBox1.Checked == true) { objprp.optsts = 'T'; } else { objprp.optsts = 'F'; } obj.save_rec(objprp); TextBox3.Text = String.Empty; }
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { Int32 a = Convert.ToInt32(GridView1.DataKeys[GridView1 .SelectedIndex][0]); ViewState["qstcod"] = a; Educom.clsqst obj = new Educom.clsqst(); List <Educom.clsqstprp> k = obj.find_rec(a); Label3.Text = k[0].qstdsc; Panel3.Visible = true; Educom.clsopt obj1 = new Educom.clsopt(); GridView3.DataSource = obj1.disp_rec(a); GridView3.DataBind(); AjaxControlToolkit.ModalPopupExtender mpe = (AjaxControlToolkit.ModalPopupExtender) (GridView1.Rows[GridView1.SelectedIndex].FindControl ("lk1_ModalPopupExtender")); mpe.Show(); }
public List <Educom.clsoptprp> getdata(Int32 qstcod) { Educom.clsopt obj = new Educom.clsopt(); return(obj.disp_rec(qstcod)); }