views:

23

answers:

1

Hi,

I have a button is inside a another table(s) inside the update panel.

<Update panel>
<ContentTemplate>
<table>
  <table>
    <Button>
 <table>
<table>
</ContentTemplate>
</Update panel>

I would like to add a button to Update panel's trigger. But am getting an err says "Update panel can not find the button which trigger it".

I am getting "Sys.Webforms.PageRequestmanagerParseErrorException: This message recieved from manager could not be parsed. Common cause for this error are when response is modified by response.write"

Please help!

+1  A: 

PostBackTrigger example:

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
 <ContentTemplate>
  <asp:Button ID="btn1" runat="server" Text="Button 1-Partial Postback" />
  <asp:Button ID="btn2" runat="server" Text="Button 2-Full Postback" />
 </ContentTemplate>
 <Triggers>
  <asp:PostBackTrigger ControlID="btn2" />
 </Triggers>
</asp:UpdatePanel>
CD
Here, in ur example... we have buttons inside update panel..then (as u said) why do go for trigger ? (Or did u just gave an exaample ???)
Anish
There are 2 types of Triggers: AsyncPostBackTrigger and PostBackTrigger. you don't need to set an AsyncPostBackTrigger for a control that is in the UpdatePanel.
CD
here my buttons are not directly inside update panel..but they inside 2 nested tables which are inside the update panel. So my update panel is not able to locate the button, it says.
Anish
can you add your code to the question?
CD
I am in client location, I cant copy tat code :(. I am sorry
Anish