Solved

UpdatePanel sends enter page back?

Posted on 2008-10-11
5
728 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now