protected void Abeyance_Click(Object sender, System.EventArgs e) { int memoid = Convert.ToInt32(Session["MemoID"]); string description = TextBox3.Text; string priority = TextBox4.Text; DateTime dt2 = DateTime.ParseExact(TextBox5.Text, "d/M/yyyy", null); objMemoBAL.InsertToAbeyance("MemoAbeyance", memoid, description, priority, dt2, "Internal Memo",Session["Empcode"].ToString()); HiddenField hdnMemoId = new HiddenField(); LinkButton lnk = sender as LinkButton; GridViewRow gvrCurrent = ((LinkButton)lnk).NamingContainer as GridViewRow; hdnMemoId = (HiddenField)gvrCurrent.FindControl("hdnMemoId"); int id = Convert.ToInt32(gvList.DataKeyNames[gvrCurrent.RowIndex]); gvList.DeleteRow(id); Response.Redirect("frmInternalMemo.aspx"); }// Abeyance and Defer
GridViewRow gvrow = (GridViewRow)((LinkButton)e.CommandSource).NamingContainer;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)