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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Impement AJAX,

Impement AJAX,

Scheduled Pinned Locked Moved ASP.NET
xmlquestion
7 Posts 2 Posters 1 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.
  • C Offline
    C Offline
    codelinks
    wrote on last edited by
    #1

    Imagine this is my initial page DSIHome.aspx I need to implement AJAX in existing project, my requirement is……… I have a menu with sub menus,, which is again generated dynamically (XML). On clicking in any of the sub menus, I pass the argument to the URL , just like below location.href="DSIHome.aspx?hdnfld=" + obj + "&catName="+ catName ; this will initiate the postback and pass the values to the URL, and I can retrieve the form content based on the URL values using QueryString, my part here is to STOP postback, i need to implment AJAX and stop the postback happening while clicking the sub menu do u have any suggestion for this ?

    winnie

    C 1 Reply Last reply
    0
    • C codelinks

      Imagine this is my initial page DSIHome.aspx I need to implement AJAX in existing project, my requirement is……… I have a menu with sub menus,, which is again generated dynamically (XML). On clicking in any of the sub menus, I pass the argument to the URL , just like below location.href="DSIHome.aspx?hdnfld=" + obj + "&catName="+ catName ; this will initiate the postback and pass the values to the URL, and I can retrieve the form content based on the URL values using QueryString, my part here is to STOP postback, i need to implment AJAX and stop the postback happening while clicking the sub menu do u have any suggestion for this ?

      winnie

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

      The URL does not change when you use AJAX, so you need to rethink your whole approach. You could pass the values via the AJAX call and store them in jscript if you need them locally. What's on the page, that is, what sort of navigation are you hoping to replace with AJAX ?

      Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

      C 1 Reply Last reply
      0
      • C Christian Graus

        The URL does not change when you use AJAX, so you need to rethink your whole approach. You could pass the values via the AJAX call and store them in jscript if you need them locally. What's on the page, that is, what sort of navigation are you hoping to replace with AJAX ?

        Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

        C Offline
        C Offline
        codelinks
        wrote on last edited by
        #3

        thanks for the quick reponse, I havent found the method to solve the problem, i can take your suggestion using AJAX call, can you provide me with links, samples on how to implement that. regards

        winnie

        C 1 Reply Last reply
        0
        • C codelinks

          thanks for the quick reponse, I havent found the method to solve the problem, i can take your suggestion using AJAX call, can you provide me with links, samples on how to implement that. regards

          winnie

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

          Umm.... I asked you some questions, could you answer them ?

          Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

          C 1 Reply Last reply
          0
          • C Christian Graus

            Umm.... I asked you some questions, could you answer them ?

            Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

            C Offline
            C Offline
            codelinks
            wrote on last edited by
            #5

            the page contains treeview and 2 datalist, the data on these controls is loaded based on the values on the URL, as you said the values should be available locally , hope im conveying the problem in right words regards

            winnie

            C C 2 Replies Last reply
            0
            • C codelinks

              the page contains treeview and 2 datalist, the data on these controls is loaded based on the values on the URL, as you said the values should be available locally , hope im conveying the problem in right words regards

              winnie

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

              OK, you should use ASP.NET AJAX for this, which will just wrap everything for you. Trying to populate those controls using your own JS is a PITA. If you put everything in an update panel, it will just AJAX it for you.

              Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

              1 Reply Last reply
              0
              • C codelinks

                the page contains treeview and 2 datalist, the data on these controls is loaded based on the values on the URL, as you said the values should be available locally , hope im conveying the problem in right words regards

                winnie

                C Offline
                C Offline
                codelinks
                wrote on last edited by
                #7

                thanks

                winnie

                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