Click here to Skip to main content
15,922,894 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i add delete confirmation in grid view delte common field by acessing it by the code below in row data bound event. but after that buy common fied edit stoped working .. what i have to do it to correct that

C#
if (e.Row.RowType == DataControlRowType.DataRow)
       {
           string id = ((Label)(e.Row.FindControl("lblproname"))).Text;

           //cast the ShowDeleteButton link to linkbutton


           LinkButton lb = (LinkButton)e.Row.Cells[4].Controls[0];

           if (lb != null)
           {

               //attach the JavaScript function with the ID as the paramter

               lb.Attributes.Add("onclick", "return ConfirmOnDelete('" + id + "');");

           }
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900