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. indicator to show online or offline

indicator to show online or offline

Scheduled Pinned Locked Moved ASP.NET
9 Posts 5 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.
  • M Offline
    M Offline
    meghamaharshi
    wrote on last edited by
    #1

    Hello everybody..in my application i have to show a indication whether i am connected to internet or not..

    A A C 3 Replies Last reply
    0
    • M meghamaharshi

      Hello everybody..in my application i have to show a indication whether i am connected to internet or not..

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      meghamaharshi wrote:

      in my application i have to show a indication whether i am connected to internet or not..

      You want to mean , that you need to show all the user list that are currently logged in into your application ?

      cheers, Abhijit CodeProject MVP My Recent Article : Exploring Session in ASP.Net

      M 1 Reply Last reply
      0
      • A Abhijit Jana

        meghamaharshi wrote:

        in my application i have to show a indication whether i am connected to internet or not..

        You want to mean , that you need to show all the user list that are currently logged in into your application ?

        cheers, Abhijit CodeProject MVP My Recent Article : Exploring Session in ASP.Net

        M Offline
        M Offline
        meghamaharshi
        wrote on last edited by
        #3

        Thanks for reply.. But i just want to show the status internet is on or not...

        _ 1 Reply Last reply
        0
        • M meghamaharshi

          Hello everybody..in my application i have to show a indication whether i am connected to internet or not..

          A Offline
          A Offline
          Abhishek Sur
          wrote on last edited by
          #4

          do you really want this in your web application. Bcos we often need this for Windows Application. For windows use: System.Net.NetworkInformation.NetworkChange.NetworkAvailabilityChanged += new System.Net.NetworkInformation.NetworkAvailabilityChangedEventHandler(NetWorkChangedCallback);

          Abhishek Sur

          M 1 Reply Last reply
          0
          • A Abhishek Sur

            do you really want this in your web application. Bcos we often need this for Windows Application. For windows use: System.Net.NetworkInformation.NetworkChange.NetworkAvailabilityChanged += new System.Net.NetworkInformation.NetworkAvailabilityChangedEventHandler(NetWorkChangedCallback);

            Abhishek Sur

            M Offline
            M Offline
            meghamaharshi
            wrote on last edited by
            #5

            yes i want it for web application..

            1 Reply Last reply
            0
            • M meghamaharshi

              Thanks for reply.. But i just want to show the status internet is on or not...

              _ Offline
              _ Offline
              _AK_
              wrote on last edited by
              #6

              If it is a web application (not intranet) then obviously the user is connected to internet. :)

              Apurva Kaushal

              M 1 Reply Last reply
              0
              • _ _AK_

                If it is a web application (not intranet) then obviously the user is connected to internet. :)

                Apurva Kaushal

                M Offline
                M Offline
                meghamaharshi
                wrote on last edited by
                #7

                its web application which is being run on Lan making virtual directory..

                1 Reply Last reply
                0
                • M meghamaharshi

                  Hello everybody..in my application i have to show a indication whether i am connected to internet or not..

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

                  This has to be the dumbest thing I have ever heard. If you're on a LAN and you want to know if an internet connection exists or not, just ping google or microsoft and if you get a reply or not, you'll know if you're online.

                  Christian Graus Driven to the arms of OSX by Vista.

                  A 1 Reply Last reply
                  0
                  • C Christian Graus

                    This has to be the dumbest thing I have ever heard. If you're on a LAN and you want to know if an internet connection exists or not, just ping google or microsoft and if you get a reply or not, you'll know if you're online.

                    Christian Graus Driven to the arms of OSX by Vista.

                    A Offline
                    A Offline
                    Abhishek Sur
                    wrote on last edited by
                    #9

                    Yes Christian is Right. For web application, just make an object of XMLHttpRequest and do an AJAX call to any page using SetInterval, so that this ajax call will occur after a certain time. And show the status message based on the reply from the server. Thats all is possible in WEB... :cool::cool:

                    Abhishek Sur

                    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