Some AJAX questions.

Last post 10-09-2008 5:40 AM by Thomas Sun – MSFT. 5 replies.

Sort Posts:

  • Some AJAX questions.

    10-06-2008, 7:24 PM
    • Member
      50 point Member
    • Beau_Damore
    • Member since 09-08-2007, 3:15 AM
    • Las Vegas
    • Posts 229

    Hi all,

    I am writing an app for a client. There will be about 5 main 'sections' of the site. Using master pages and/or AJAX I want to accomplish the following:

    a. Main links 1-5 when clicked will refresh/load the lower portion of the screen, not the top logo/menu. (I want to not have to reload the logo/menu after the first page.)

    b. sub-'pages' (ajax areas or whatever) 1-5 EACH have a left-side menu with several menu items. (I want the left-side menu not to reload when links are clicked... only the right half that has data in it.

    Basically, there's a main 'menu' at the top with the logo. then there's about 5 or so main 'pages' that each have 1-20 sub 'pages' based on their 'left-side menu' specifically. Does this make sense?

    When an item in the main menu is clicked, the lower half refreshes/loads with a 'page'... that page has a 'left-side menu' and a right-side area. the right side area will refresh/load when a 'left-side menu' item is clicked.

    I am making it all in DIV's and using XP Pro/VS2005 and a 2k3 server. How do I have to handle/order the update panels to handle this? How manuy 'base pages' can/must there be? I realize there are a few ways of doing this, but I want to not use custom javascript and/or anything outside MS if possible.

    I am trying to cut down on network traffic and do partial page refreshes as much as possible.

    Thanks much.

    Beau D'Amore
    Consultant
    www.beaudamore.com
  • Re: Some AJAX questions.

    10-07-2008, 12:07 AM
    Answer
    • Star
      13,487 point Star
    • gt1329a
    • Member since 06-24-2002, 12:53 AM
    • Atlanta
    • Posts 2,224
    • ASPInsiders
      TrustedFriends-MVPs
  • Re: Some AJAX questions.

    10-07-2008, 12:26 PM
    • Member
      50 point Member
    • Beau_Damore
    • Member since 09-08-2007, 3:15 AM
    • Las Vegas
    • Posts 229

    Excellent link. Thanks much.

    So, should I use specific tailored masterpages? Can I nest master pages?

    It would be great not to have to update 5 seperate sub-pages if we add a new link/page to the 'left menu'. Is there a way to use a masterpage for the top nav, then somehow, attach another masterpage to the bottom(sub pages) to handle the 'left nav menu'?

    Beau D'Amore
    Consultant
    www.beaudamore.com
  • Re: Some AJAX questions.

    10-07-2008, 3:44 PM
    • Star
      13,487 point Star
    • gt1329a
    • Member since 06-24-2002, 12:53 AM
    • Atlanta
    • Posts 2,224
    • ASPInsiders
      TrustedFriends-MVPs
    You could definitely use a Master/Content page setup that used an iframe for the content area.
    Encosia - ASP.NET, jQuery, AJAX, and more.

    Latest article: Using jQuery validation with ASP.NET WebForms
  • Re: Some AJAX questions.

    10-07-2008, 6:44 PM
    • Member
      50 point Member
    • Beau_Damore
    • Member since 09-08-2007, 3:15 AM
    • Las Vegas
    • Posts 229

    Hate to ask but, do you have a snippet on what you mean?...(is this nesting master pages or something?) I'm a DIV/iFRAME/CSS idiot.

    I'm an old Classic ASP/TABLE guy...lol

    Beau D'Amore
    Consultant
    www.beaudamore.com
  • Re: Some AJAX questions.

    10-09-2008, 5:40 AM
    Answer

    Hi,

    I agree with the member above.

    With Master page and Content page, they will be loaded again when we redirect user to another page by click navigate link in the Master page. For more information, see http://msdn.microsoft.com/en-us/library/wtxbf3hh.aspx

    In your case, if you don't want to load the header when redirecting, you can use iframe in the page and set its's src in the client script, and then use Updatepanel in sub page to implement partial update.

     

    Thanks.

    Thomas Sun
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
Page 1 of 1 (6 items)