my button is inside Templatefield of Gridview
my gridview is inside updatepanel
if i trigger it within that updatepanel it says cannot find control id BUTTON2 inside update panel1
here is my code
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Button2" EventName="Click"></asp:AsyncPostBackTrigger >
</Triggers>
<ContentTemplate>
<Custom:EmptyGridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"
ShowHeaderWhenEmpty="True" EmptyDataText="No Uploads are found" ShowEmptyTable="True"
ShowFooterWhenEmpty="False" Style="margin-top: 20px" OnSelectedIndexChanged="GridView2_SelectedIndexChanged"
OnRowDataBound="GridView2_RowDataBound"
:
:
:
:
<asp:TemplateField ShowHeader="False" HeaderText="Receive">
<ItemTemplate>
<asp:Button ID="Button2" runat="server" CausesValidation="false" CommandName="select"
Text="Receive" />
</ItemTemplate>
</asp:TemplateField>
My button2 is wrking fine without updatepanel but not inside updatepanel..plz help