473,836 Members | 1,538 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Ajax Async Process Flow

4 New Member
As we know ajax resides between server and client and helps the page's partial rendering...so no need to render all the page controls from scratch....so when we know that some controls requires post back data..we put those control in ajax "update panel" tags...and rest of the non postback enabled controls outside updte panel....

Now we have 6 controls in a web form...2 of them dont need async process..and 4 of them need async process...so we put those 4 controls within a update panel..now these 4 controls requires rendering...rig ht ??

But only one of the controls get changed...so my ques is - all 4 controls goes to server for re-rendering...or only 1 control whose data get changed goes to server for re-rendering ??? And if only 1 control (who is changed) goes to server ..then who renders rest 3 controls Ajax itself by any caching mechanism ..or all 4 controls in update panel goes to server and server async'ly render all 4 controls??
Dec 24 '09 #1
4 3678
Frinavale
9,735 Recognized Expert Moderator Expert
Well the first thing that jumps out at me is that you are mistaken about Ajax. Ajax does not reside "between" the client and the server. Ajax exists in the browser...in the client. Ajax stands for Asynchronous JavaScript And XML. It is used to make an asynchronous request to the server.

Ajax in ASP.NET is a not exactly as simple and clean as a pure Ajax request to the server. When you use the UpdatePanel to preform an Asynchronous request to the server, the entire page content (including the ViewState) is sent to the server so that the server can process the request. When the response is sent back to the browser it is stripped down to only contain the content that is needed to be displayed in the UpdatePanel.

So, to answer your question:
[do] all 4 controls goes to server for re-rendering
Yes, all 4 controls (and everything else on the page) are sent to the server. These 4 controls are re-rendered in the browser when the response is sent back because they are within the UpdatePanel. The 2 controls that are outside of the UpdatePanel are not re-rendered because the response has been stripped down to only contain the content within the UpdatePanel that preformed the asynchronous request.


-Frinny
Dec 24 '09 #2
prit
4 New Member
So you mean to say that all the controls within the update panel are re-rendered !!

Let me remind you that, my situation was that 4 controls are in update panel and only 1 of them has been changed by its content, not the rest 3 controls within the update panel. Still those rest 3 controls are re-rendered from scratch with its corresponding data content??

Then why by using AJAX it takes less time or flicker so less?? It seems to me that only difference between conventional ASP.net and AJAX ASP.net is that - in AJAX ASP.net, browser only re-renders the controls within update panel.

But why the controls which didnt change by its own content needs to be re-renered? Those controls can be populated with data by using any catching mechanism !! An only changed (by content) controls are re-renderd...

Is this approach taken becoz the controls within upadate panel may be inter-dependent by their contents??
Dec 26 '09 #3
Frinavale
9,735 Recognized Expert Moderator Expert
It sounds like you want to place each control into an UpdatePanel of their own.
Anything within an UpdatePanel will be refreshed...thi s is just how things work.

-Frinny
Dec 29 '09 #4
prit
4 New Member
Thanks Frinny..It was really a quick response...
Dec 29 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
10463
by: Vanessa | last post by:
I have a question regarding async mode for calling Microsoft.XMLHTTP object. Microsoft.XMLHTTP hangs the IE once in a while suddenly, but it will work again after half an hour or so without doing anything. I have searched through the Internet and seems like the reason it hangs the browser it's because XMLHTTP limits you to two concurrent HTTP connections to each remote host; so if more than 2 concurrent connections strike the script...
6
2426
by: Trip | last post by:
Please if someone can help me !!! I need client and server code(principle based on AJAX) for next problem: i have 3 <select> tags on html page.(it must be NO page reload(callback) only select(controles) regeneration !!!) In the first <select> goes countries, which must be pulled from some kind of database (whichever you want). after that if i select some country, second <select> must be filled with regions of that country, and when i...
0
1224
by: tg | last post by:
Hello, This is more of a design question. I am trying to understand how to use async web service invocation for asp.net 2.0 web parts with an Ajax style update / data rendering. I have a web page with a search box on top & 2 web parts that display search results using web services. Currently, I am calling these web services synchronously (which takes a while).
2
1396
by: Ralph | last post by:
I was playing a little bit with a lot of ajax frameworks. I have even wrote one small by myself. But one thing still drives me crazy: Whenever I'm doing an ajax call I need to specify handler to handle data coming from a server script. That means that almost for every action I need two functions. Since I'm still new to all of this I'd like to ask how can i achieve something like this: function function_name(el) {
6
5179
by: =?Utf-8?B?U2hhd24gU2VzbmE=?= | last post by:
Greetings! I was researching AJAX to provide a solution to displaying status messages while a long process executed. I found several examples online and was able to use their code to get a quick application working. However, when attempting to implement the solution, the AJAX calls weren't updating the screen like the examples were and seemed not to fire until after the long running process had completed. I found the only real...
3
2759
by: nghivo | last post by:
I attempted to synchronize async Ajax calls using the following JS blocks: ==================================================== function getXMLHTTPRequest() { try { req = window.XMLHttpRequest ? new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP"); } catch (err) { } return req;
4
1747
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, is there a way to run my javascript method on every async postback? thanks, rodchar
5
3864
by: BM | last post by:
I have a question that seems like it should have a simple answer, but I can't seem to find it by searching... Anyway, I'm trying to capture the IsPostBack event when I select an item within an UpdatePanel. I don't want items running during postback (list, grid population, etc) events - pretty standard: If IsPostBack Then Exit Sub But, since AJAX doesn't technically postback (?), the IsPostBack is coming back false...
2
1820
by: Mike Gleason jr Couturier | last post by:
Hi guys, I know that the page is reconstructed every time whenever an asynch postback is occuring... I've put a breakpoint in the page render method and the function still gets called when the postback is an asynch one. Is the framework optimizing the rendering process on asynch postback? How does the __doPostBack() is working whenever an asynch call is made? Is the page gets constructed as if it was not "in AJAX mode" and the parts
0
9825
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9671
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10854
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10558
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10600
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7794
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6981
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
4022
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3116
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.