PartialUpdatePanel with Dynamic UserControls
-
Hi All, We are loading userControls Dynamically on Page, but we need to load all the usercontrols asynchronous way. How can we load user controls one by one with loading image. we have found below link for asynchronous loading.Please suggest me better way. Load and Display Page Contents Asynchronously with Full Postback Support[^]
-
Hi All, We are loading userControls Dynamically on Page, but we need to load all the usercontrols asynchronous way. How can we load user controls one by one with loading image. we have found below link for asynchronous loading.Please suggest me better way. Load and Display Page Contents Asynchronously with Full Postback Support[^]
vishnukamath wrote:
Please suggest me better way.
What's the problem with the article suggested way? Simple logic: Have multiple XMLHttpRequests on load of page (equal to number of user controls - each mapped to one area on page to be shown in a panel). Each request will get the HTML of a defined panel. Once the response is received, show the panel with HTML returned.
Sandeep Mewara [My last article]: Server side Delimiters in ASP.NET[^]
-
Hi All, We are loading userControls Dynamically on Page, but we need to load all the usercontrols asynchronous way. How can we load user controls one by one with loading image. we have found below link for asynchronous loading.Please suggest me better way. Load and Display Page Contents Asynchronously with Full Postback Support[^]
vishnukamath wrote:
can we load user controls one by one
You really can't load each control one by one, unless you made separate calls to the server and asked for each control 1 at a time. All you can do is create a container to hold your dynamic controls, and update the container in either a single request to the server, or multiple requests to the server.
vishnukamath wrote:
with loading image
In either case, javascript is required to alter the elements in the DOM, and when Javascript makes a change to the DOM, it rams the script through with complete disregard to any order or timing you wish to achieve, unless you add painting events to the script.
vishnukamath wrote:
we have found below link for asynchronous loading.Please suggest me better way.
I inspected the link you provided, and it looks like a good solution. I don't see the problem with trying it out, unless the article was too complicated for you and your looking for something easier. The only better way I can think of is the way Code Project does it. But if you have to ask how to do it, then I think ....