Gridview has a template field with item linkbutton delete with CommandName now when user click on linkbutton then find the rowindex on Rowcommand event of gridview using C#.net protected void grdtest1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == “DeleteRow”) { LinkButton gv = (LinkButton)e.CommandSource; GridViewRow gvr = (GridViewRow)gv.Parent.Parent; int rownum = gvr.RowIndex; } }
Archive for October, 2010
Replace enter key value from textbox using asp.net with c#.net and save in database
October 20th, 2010
admin Problem: when I wants save multiline textbox value in database using asp.net with c#.net and show as it is its not happening …. Actually the problem is when we enter the value in textbox and press enter key. value like this this is jack web developer it save in database but when fetch value from [...]



Posted in