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. Refreshing a part of webSite

Refreshing a part of webSite

Scheduled Pinned Locked Moved ASP.NET
tutorial
8 Posts 4 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.
  • J Offline
    J Offline
    jojoba2010
    wrote on last edited by
    #1

    How to use Timer to refresh this Code

    Visitors online: <%= Application["OnlineUsers"].ToString() %>
    

    in regular intervals without refreshing the whole page !

    V 1 Reply Last reply
    0
    • J jojoba2010

      How to use Timer to refresh this Code

      Visitors online: <%= Application["OnlineUsers"].ToString() %>
      

      in regular intervals without refreshing the whole page !

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      Have the variable in a small DIV. Have a small window.setTimeout function to be called repeatedly based on timer and use XmlHttpRequest to fetch the value from the server and paint the DIV alone.

      Vasudevan Deepak Kumar Personal Homepage
      Tech Gossips
      The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!

      J 1 Reply Last reply
      0
      • V Vasudevan Deepak Kumar

        Have the variable in a small DIV. Have a small window.setTimeout function to be called repeatedly based on timer and use XmlHttpRequest to fetch the value from the server and paint the DIV alone.

        Vasudevan Deepak Kumar Personal Homepage
        Tech Gossips
        The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!

        J Offline
        J Offline
        jojoba2010
        wrote on last edited by
        #3
        Sorry !
        

        I am Shame to say that ....

        Will you please

        give example Step by Step

        so i can understand it better (Cause i am new to ASP.net) and have to finish my project for this Wednesday !?

        D 1 Reply Last reply
        0
        • J jojoba2010
          Sorry !
          

          I am Shame to say that ....

          Will you please

          give example Step by Step

          so i can understand it better (Cause i am new to ASP.net) and have to finish my project for this Wednesday !?

          D Offline
          D Offline
          DJ Matthews
          wrote on last edited by
          #4

          Try looking at this Linky[^]

          modified on Tuesday, January 12, 2010 11:28 AM

          J 1 Reply Last reply
          0
          • D DJ Matthews

            Try looking at this Linky[^]

            modified on Tuesday, January 12, 2010 11:28 AM

            J Offline
            J Offline
            jojoba2010
            wrote on last edited by
            #5
            No Link !!!!!!!!!!!!!!!!!!
            
            A D 2 Replies Last reply
            0
            • J jojoba2010
              No Link !!!!!!!!!!!!!!!!!!
              
              A Offline
              A Offline
              Abhijit Jana
              wrote on last edited by
              #6

              jojoba2010 wrote:

              No Link !!!!!!!!!!!!!!!!!!

              What do you mean by that ? Link is properly given there. I am again giving it for you. http://www.asp.net/AJAX/Documentation/Live/overview/PartialPageRenderingOverview.aspx[^]

              Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

              1 Reply Last reply
              0
              • J jojoba2010
                No Link !!!!!!!!!!!!!!!!!!
                
                D Offline
                D Offline
                DJ Matthews
                wrote on last edited by
                #7

                Link fixed above and try not to use <pre></pre> unless your submitting code of somekind

                J 1 Reply Last reply
                0
                • D DJ Matthews

                  Link fixed above and try not to use <pre></pre> unless your submitting code of somekind

                  J Offline
                  J Offline
                  jojoba2010
                  wrote on last edited by
                  #8

                  Thanks You mean that i use this code <pre> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> Visitors online: <%= Application["OnlineUsers"].ToString() %> </ContentTemplate> </asp:UpdatePanel> </pre>

                  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