Hi,
In the page I'm developing I have the following structure:
<div id="myDiv" runat="server">
<asp:UpdatePanel>
<ContentTemplate>
<asp:GridView Id=myGridView ...>
<Columns>
<TemplateField HeaderText="Header">
<ItemTemplate>
...
</ItemTemplate>
<InsertItemTemplate>
...
</InsertItemTemplate>
<EditItemTemplate>
...
</EditItemTemplate>
<FooterTemplate>
...
</FooterTemplate>
</TemplateField>
</Columns>
</asp:GridView>
</ContentTempate>
</asp:UpdatePanel>
</div>
Inside the GridView, in one of the <EditTemplate> and in one of the
<InsertItemTemplate>, I have the following line:
OnClientClick="javascript:setTimeout('__doPostBack(\'<
%=someButton.ClientID%>',\'\')', 0)" associated to a LinkButton
(UpdateButton and InsertButton).
This GridView is being shown when the user clicks on a linkButton
(DetailsLinkButton) in another GridView (the second GridView show the
details for the record chosen in the first one).
I'm having this error message when I click on the DetailsLinkButton:
Could not find UpdatePanel with ID 'ctl00 main Copy UpdatePanel'. If
it is being updated dynamically then it must be inside another
UpdatePanel.
I tried run the page after removing this two callings to the
javascript __postBack method but I still have the same problem (after
removing this two callings to the __postBack method, the only call to
a javascript in my Page is to confirm the deletion of a record).
Have anyone ever had this problem? What is happening? All help is
welcome!
Thanks,
Ana