HOW TO FIND CLICK EVENT OF BUTTON INSIDE FOOTR TEMPLATE IN GRIEDVIEW

Posted by Shanky11 under ASP.NET on 11/19/2012 | Points: 10 | Views : 617 | Status : [Member] | Replies : 2
<asp:TemplateField HeaderText="Address">
<ItemTemplate>
<%#Eval("adress")%>

</ItemTemplate>
<FooterTemplate>
<asp:Button ID="Button1" runat="server" Text="Insert" CommandName="add" />
</FooterTemplate>
</asp:TemplateField>

I have to find the click event of button inside griedviw ??????????
Please provide the code to find click event




Responses

Posted by: Sandhyab on: 11/19/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
Please refer this link
http://www.dotnetfunda.com/articles/article180.aspx

Thanks & Regards


Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 11/19/2012 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
You did it well

<asp:Button ID="Button1" runat="server" Text="Insert" CommandName="add" />


You need to use the Gridview Command event and check if the Command is "add".

Thank you for posting at Dotnetfunda
[Administrator]

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response