Exemple #1
0
 protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
 {
     Educom.clsqst    obj    = new Educom.clsqst();
     Educom.clsqstprp objprp = new Educom.clsqstprp();
     objprp.qstcod = Convert.ToInt32(GridView1.DataKeys
                                     [e.RowIndex][0]);
     obj.delete_rec(objprp);
     GridView1.DataBind();
     e.Cancel = true;
 }
Exemple #2
0
 protected void Button2_Click(object sender, EventArgs e)
 {
     Educom.clsqst    obj    = new Educom.clsqst();
     Educom.clsqstprp objprp = new Educom.clsqstprp();
     objprp.qstdsc       = TextBox2.Text;
     objprp.qstlecexrcod = Convert.ToInt32(ViewState["cod"]);
     objprp.qstord       = Convert.ToInt32(DropDownList1.SelectedValue);
     obj.save_rec(objprp);
     TextBox2.Text = String.Empty;
     bind();
 }