Solved

UpdatePanel sends enter page back?

Posted on 2008-10-11
5
733 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

636 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