Load different content pages in content place holder without refreshing the whole page using ajax

Last post 10-17-2007 1:01 PM by Luis Abreu. 3 replies.

Sort Posts:

  • Load different content pages in content place holder without refreshing the whole page using ajax

    10-15-2007, 11:58 AM
    • Member
      7 point Member
    • rprInfo
    • Member since 02-22-2007, 7:36 AM
    • Posts 46

    Hi,

    I have built a ajax enabled website, where i have a master page which holds a content placeholder, and two content pages, where one is the home screen and another is a dashboard, a menu is placed in master page , by default home page is made to display, when the menu item dashboard is clicked , the the contentplace holder should load the dashboard page without postbacking the whole page, how to do that through ajax? Pleas help me......

    Its very urgent, I am stucked......

    rprinfo
  • Re: Load different content pages in content place holder without refreshing the whole page using ajax

    10-15-2007, 2:37 PM
    Answer
    • All-Star
      25,662 point All-Star
    • Luis Abreu
    • Member since 02-12-2005, 6:22 AM
    • Madeira [Portugal]
    • Posts 5,368
    • TrustedFriends-MVPs

    hello.

    i'd say that you cannot do that in your scenario. i'd refactor the site and transform the contents of the main page and the other page in user controls. then, i'd build only one page set its content to one of the user controls...

    --
    Regards,
    Luis Abreu
    email: labreu_at_gmail.com
    EN blog:http://msmvps.com/blogs/luisabreu
  • Re: Load different content pages in content place holder without refreshing the whole page using ajax

    10-17-2007, 11:59 AM
    • Member
      7 point Member
    • rprInfo
    • Member since 02-22-2007, 7:36 AM
    • Posts 46

    Luis Abreu:

    hello.

    i'd say that you cannot do that in your scenario. i'd refactor the site and transform the contents of the main page and the other page in user controls. then, i'd build only one page set its content to one of the user controls...

     

    Hi Luis,

     

    I am new in creating webapplication. I am not able to get what u'r saying.

    Plese explin me in details, What is usercontrol ? How does it satisfy my needs?

    Please help me. Give me an example, whre they have used user control ......

     

    Thanks in advance

    rprinfo
  • Re: Load different content pages in content place holder without refreshing the whole page using ajax

    10-17-2007, 1:01 PM
    • All-Star
      25,662 point All-Star
    • Luis Abreu
    • Member since 02-12-2005, 6:22 AM
    • Madeira [Portugal]
    • Posts 5,368
    • TrustedFriends-MVPs

    here's an old post that shows how you  might change the user controls on an udpate panel:

    http://msmvps.com/blogs/luisabreu/archive/2007/02/15/adding-controls-to-an-updatepanel-through-code.aspx

     regarding the user control part, well, it's really the easiest way you have to develop a control. i think that if you go to the asp.net site, you'll be able to get lot of info from the quick starts

    --
    Regards,
    Luis Abreu
    email: labreu_at_gmail.com
    EN blog:http://msmvps.com/blogs/luisabreu
Page 1 of 1 (4 items)