Link to home
Start Free TrialLog in
Avatar of brettr
brettr

asked on

UpdatePanel sends enter page back?

I've read that the asp.net (3.5) UpdatePanel sends the entire page back on postback.  How can I verify this?

If I want the UpdatePanel functionality without sending back the entire page, would I need to create my own AJAX async and an HTML server side DIV tag to hold everything or just go with a regular Panel?  I want to create a CustomPanel that is basically an UpdatePanel but only renders what's in the panel on async calls.
ASKER CERTIFIED SOLUTION
Avatar of Anurag Thakur
Anurag Thakur
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of brettr
brettr

ASKER

I have this type of layout:

<updatepanel ID="panelContainer">
   <updatepanel ID="panel1">controls</updatepanel>
   <updatepanel ID="panel2" visible=false>controls</updatepanel>
   controls  
  <updatepanel ID="panel3">controls</updatepanel>
</updatepanel>

Usually, something in say panel1 will cause panel2 to become visible.  I need panelContainer for this to happen dynamically.   The problem is that panel3 and any other panels not directly involved in this action gets caught up in the network traffic (part of response), which is unnecessary.   Is there a way around that?
remove the top level update panel and try again I think it should work as required
Avatar of brettr

ASKER

No, as describe above, that will not work.  You'll get an error like this:

Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'UpdatePanel2'. If it is being updated dynamically then it must be inside another UpdatePanel.