Tuesday, 27 January 2015

Button Click Event Inside GridView Using Asp.Net C#

No comments    
categories: ,
Button Click Event Inside GridView


Get the Values From Runtime GridView  Pass Next  Form Use to Button  in This Method


               C# Coding


   protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {

         Button btn = (Button)sender;

        GridViewRow gr = (GridViewRow)btn.NamingContainer;

        Label sendermail = (Label)gr.FindControl("Label10");

        TextBox name = (TextBox)gr.FindControl("txtname");

        TextBox mobile = (TextBox)gr.FindControl("txtmobile");

        TextBox mail = (TextBox)gr.FindControl("txtemail");

        TextBox message = (TextBox)gr.FindControl("txtmessage");


}



If Need Example Refer Below Link

http://screenshotdrizzles.blogspot.in/2015/01/linkbutton-click-event-inside-gridview.html

0 comments:

Post a Comment