Exemplo n.º 1
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     nsdoc.clsusr obj = new nsdoc.clsusr();
     GridView1.DataSource = obj.srcusr(TextBox1.Text, Convert
                                       .ToInt32(Request.QueryString["gcod"]));
     GridView1.DataBind();
 }
Exemplo n.º 2
0
 protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
 {
     nsdoc.clsgrpmem    obj    = new nsdoc.clsgrpmem();
     nsdoc.clsgrpmemprp objprp = new nsdoc.clsgrpmemprp();
     objprp.grpmemgrpcod = Convert.ToInt32(Request.QueryString["gcod"]);
     objprp.grpmemusrcod = Convert.ToInt32(GridView1.DataKeys
                                           [e.NewEditIndex][0]);
     objprp.grpmemjondat = DateTime.Now;
     obj.Save_Rec(objprp);
     TextBox1.Text = String.Empty;
     nsdoc.clsusr obj1 = new nsdoc.clsusr();
     GridView1.DataSource = obj1.srcusr(TextBox1.Text, Convert
                                        .ToInt32(Request.QueryString["gcod"]));
     GridView1.DataBind();
     DataList2.DataBind();
 }