Exemplo n.º 1
0
    protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        int nId = Convert.ToInt32(GridView1.DataKeys[e.RowIndex].Value);

        ServiceNewService.Delete_News(nId);
        binddata();
    }
Exemplo n.º 2
0
 protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "delRecord")
     {
         int nid = Convert.ToInt32(e.CommandArgument);
         ServiceNewService.Delete_News(nid);
         binddata(((UserInfo)Session["ServiceUser"]).U_SID, Convert.ToInt32(ViewState["tid"]));
     }
 }