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. Questions about Ajax and ASP.NET

Questions about Ajax and ASP.NET

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasesql-serversysadmin
5 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.
  • K Offline
    K Offline
    kallileo
    wrote on last edited by
    #1

    I have a web application that updates records in a Sql Server Table. Also I have another table where I insert data from a hardware device. The systems works well. The web page has 8 buttons controls that update boolean values in the first table. Everytime I press the button the page is reloading. What I want now is to interate AJAX in my application so when I press on of the buttons the page will not realoaded. Also I need to poll every few seconds the second table so when my hardware device inserts a record it will automatically will be updated in my gridview. I have absolutely no idea about Ajax and I have about one month before the deadline for my project. Is this difficult to implement? Any help or tutorials will be apprecieted... Thank you

    N 1 Reply Last reply
    0
    • K kallileo

      I have a web application that updates records in a Sql Server Table. Also I have another table where I insert data from a hardware device. The systems works well. The web page has 8 buttons controls that update boolean values in the first table. Everytime I press the button the page is reloading. What I want now is to interate AJAX in my application so when I press on of the buttons the page will not realoaded. Also I need to poll every few seconds the second table so when my hardware device inserts a record it will automatically will be updated in my gridview. I have absolutely no idea about Ajax and I have about one month before the deadline for my project. Is this difficult to implement? Any help or tutorials will be apprecieted... Thank you

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      The easiest way to implement this would be to use ASP.NET Ajax (Atlas) Update Panel. http://ajax.asp.net/[^] You could also use Javascript setInterval to call an Ajax method that would query the database and update the page as necessary.


      only two letters away from being an asset

      K 1 Reply Last reply
      0
      • N Not Active

        The easiest way to implement this would be to use ASP.NET Ajax (Atlas) Update Panel. http://ajax.asp.net/[^] You could also use Javascript setInterval to call an Ajax method that would query the database and update the page as necessary.


        only two letters away from being an asset

        K Offline
        K Offline
        kallileo
        wrote on last edited by
        #3

        I have one problem when use Ajax panels in Visual Studio. The pages on my computer refresh very fast so I cannot understand if Ajax worked or it was just a fast refresh.

        N 1 Reply Last reply
        0
        • K kallileo

          I have one problem when use Ajax panels in Visual Studio. The pages on my computer refresh very fast so I cannot understand if Ajax worked or it was just a fast refresh.

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Set a break point. Use a debug message. Set the timer interval higher.:rolleyes:

          kallileo wrote:

          The pages on my computer refresh very fast so I cannot understand if Ajax worked or it was just a fast refresh.

          I can see no excuse for this statement.


          only two letters away from being an asset

          K 1 Reply Last reply
          0
          • N Not Active

            Set a break point. Use a debug message. Set the timer interval higher.:rolleyes:

            kallileo wrote:

            The pages on my computer refresh very fast so I cannot understand if Ajax worked or it was just a fast refresh.

            I can see no excuse for this statement.


            only two letters away from being an asset

            K Offline
            K Offline
            kallileo
            wrote on last edited by
            #5

            OK. Thanks...:sigh: I do some tests at the moment: script runat="server"> Sub ShowTime(ByVal sender As Object, ByVal e As EventArgs) Label1.Text = DateTime.Now.ToLongTimeString() End Sub

            Update Panel Refresh

            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