Refreshing part of a page in asp.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • WikIT
    New Member
    • Dec 2009
    • 3

    Refreshing part of a page in asp.net

    Good day

    We are using a Google Earth object in one of our systems. We have a list box with clients and their coordinates in a SQL database. Every time a person selects a client to see the location on the Google Earth object the whole page refreshes and it takes long. We want only the Google Object to refresh. We tried using Ajax, but we seem to have some problems.

    Please let me know if there is specific code you want to see. I will gladly inform you.

    Thank you for the help.
    WikIT
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Ajax stands for Asynchronous-JavaScript-And-XML. This means that a full page postback should not be happening if you are using Ajax.

    What kind of problems were you having?
    Were you using an UpdatePanel?


    -Frinny

    Comment

    • WikIT
      New Member
      • Dec 2009
      • 3

      #3
      Hi

      Yes. We are using an UpdatePanel and are using a ScriptManager.
      The main problem is that every time an item is selected in the list box the Google object needs to be refreshed, but instead the whole page is refreshed. We just want the Google object to refresh and display the new coordinates.

      Thank you
      WikiT

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        Was the ListBox inside the UpdatePanel along with the Google object?

        -Frinny

        Comment

        • WikIT
          New Member
          • Dec 2009
          • 3

          #5
          No. We didn't want to refresh the Listbox with the update panel.

          We are going to try a javascript instead. It looks like it will work better for us in that way.

          Thank you very much for your time.

          Kind Regards
          -WikiT.

          Comment

          • Frinavale
            Recognized Expert Expert
            • Oct 2006
            • 9749

            #6
            You should be able to set up the ListBox as a trigger for the UpdatePanel.

            -Frinny

            Comment

            Working...