Esempio n. 1
0
 protected void GridView2_RowDeleting(object sender, GridViewDeleteEventArgs e)
 {
     Educom.clslesexr    obj    = new Educom.clslesexr();
     Educom.clslesexrprp objprp = new Educom.clslesexrprp();
     objprp.lesexrcod = Convert.ToInt32(GridView1.DataKeys
                                        [e.RowIndex][0]);
     obj.delete_rec(objprp);
     GridView1.DataBind();
     e.Cancel = true;
 }
Esempio n. 2
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        Educom.clslesexr    obj    = new Educom.clslesexr();
        Educom.clslesexrprp objprp = new Educom.clslesexrprp();
        objprp.lesexrtit    = TextBox1.Text;
        objprp.lesexrlescod = Convert.ToInt32(Request.QueryString
                                              ["lcod"]);
        Int32 a = obj.save_rec(objprp);

        Panel2.Visible   = false;
        Panel1.Visible   = true;
        Label2.Text      = TextBox1.Text;
        ViewState["cod"] = a;
        TextBox1.Text    = String.Empty;
    }