Solved

UpdatePanel sends enter page back?

Posted on 2008-10-11
5
730 Views
Last Modified: 2013-11-08
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.
0
Comment
Question by:brettr
  • 2
  • 2
5 Comments
 
LVL 26

Accepted Solution

by:
Anurag Thakur earned 250 total points
ID: 22696099
red the following link - you will find some good discussion about update panels - it might be helpful
http://stackoverflow.com/questions/72541/one-update-panel-vs-multiple-update-panels
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 250 total points
ID: 22698882
The reason of existance of updatepanel is that we dont want to send back the entire page. Updatepanel sends back the controls which are enclosed within updatepanel.
0
 

Author Comment

by:brettr
ID: 22699468
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?
0
 
LVL 26

Expert Comment

by:Anurag Thakur
ID: 22699645
remove the top level update panel and try again I think it should work as required
0
 

Author Comment

by:brettr
ID: 22699715
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.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question