Example #1
0
 protected void DataList1_EditCommand(object source, DataListCommandEventArgs e)
 {
     nsdoc.clsdoc obj = new nsdoc.clsdoc();
     GridView1.DataSource = obj.dspmydoc(Convert.ToInt32(Session["cod"]),
                                         Convert.ToInt32(DataList1.DataKeys[e.Item.ItemIndex]));
     GridView1.DataBind();
 }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Page.IsPostBack == false)
     {
         nsdoc.clsdoc obj = new nsdoc.clsdoc();
         GridView1.DataSource = obj.dspmydoc(Convert.ToInt32(Session["cod"]), 0);
         GridView1.DataBind();
     }
 }