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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
remove the top level update panel and try again I think it should work as required
ASKER
No, as describe above, that will not work. You'll get an error like this:
Microsoft JScript runtime error: Sys.InvalidOperationExcept ion: Could not find UpdatePanel with ID 'UpdatePanel2'. If it is being updated dynamically then it must be inside another UpdatePanel.
Microsoft JScript runtime error: Sys.InvalidOperationExcept
ASKER
<updatepanel ID="panelContainer">
<updatepanel ID="panel1">controls</upda
<updatepanel ID="panel2" visible=false>controls</up
controls
<updatepanel ID="panel3">controls</upda
</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?