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. Saving my menus

Saving my menus

Scheduled Pinned Locked Moved ASP.NET
helpquestion
3 Posts 2 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.
  • 2 Offline
    2 Offline
    2hdass
    wrote on last edited by
    #1

    I am trying to migrate my web application to Ajax, but i am encountering some problem The first thing I would like to do is to make my menu bars collspable in an ajax style. Sort of like the XP windows explorer. The problem is that the main content of the page was not implemented with AJAX and as a results, many buttons will cost a post back and refreshes the page. As soon as the page is reset, the collipsable menu resets itself to initial state, not saving what was expended before. I solved this problem using session, at the load of the collapsable control, it will read the session and determine what is being closed and not. I am wondering if there are any change personalization can help me in this. and if not, what other way can be done Thank you

    C 1 Reply Last reply
    0
    • 2 2hdass

      I am trying to migrate my web application to Ajax, but i am encountering some problem The first thing I would like to do is to make my menu bars collspable in an ajax style. Sort of like the XP windows explorer. The problem is that the main content of the page was not implemented with AJAX and as a results, many buttons will cost a post back and refreshes the page. As soon as the page is reset, the collipsable menu resets itself to initial state, not saving what was expended before. I solved this problem using session, at the load of the collapsable control, it will read the session and determine what is being closed and not. I am wondering if there are any change personalization can help me in this. and if not, what other way can be done Thank you

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I am assuming that by AJAX, you mean the Microsoft AJAX library, not AJAX itself. Otherwise, you'd be writing menus and so on. The fact is, the point of AJAX is that it doesn't do postbacks, so if you want to 'AJAX' a page, you need to change those buttons to make AJAX calls instead of posting back.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      2 1 Reply Last reply
      0
      • C Christian Graus

        I am assuming that by AJAX, you mean the Microsoft AJAX library, not AJAX itself. Otherwise, you'd be writing menus and so on. The fact is, the point of AJAX is that it doesn't do postbacks, so if you want to 'AJAX' a page, you need to change those buttons to make AJAX calls instead of posting back.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        2 Offline
        2 Offline
        2hdass
        wrote on last edited by
        #3

        Yes, i know that Ajax doesnt do post backs, however, not all buttons in my application are Ajax enabled. As of now, i am only trying to migrate the menu to Ajax, so, clicking on any button not on the menu will do a post back

        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