Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. PartialUpdatePanel with Dynamic UserControls

PartialUpdatePanel with Dynamic UserControls

Scheduled Pinned Locked Moved ASP.NET
winformscom
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vishnukamath
    wrote on last edited by
    #1

    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[^]

    S J 2 Replies Last reply
    0
    • V vishnukamath

      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[^]

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      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[^]

      1 Reply Last reply
      0
      • V vishnukamath

        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[^]

        J Offline
        J Offline
        jkirkerx
        wrote on last edited by
        #3

        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 ....

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups