User Online Pop Up

Posted on 2012-08-19
Last Modified: 2012-09-13

I'm looking for some direction/sample code on the below:
when a user comes online this users profile image appears as "online" on all other users pages without them having to refresh their page

we using .net versioin 4, and sql 2008
Question by:skrombeen
    LVL 35

    Expert Comment

    by:Miguel Oz
    You can use jquery to make a AJAX call to a web method in your website/page.

    The web method will return the list of all active users  (JSON object)
    then on JS you can compare your list with the current browser list and make the required update.
    LVL 19

    Expert Comment

    Only a little appointment at mas_oz2003 answer:

    You'll also need to make your call to the server periodically to obtain the data. Otherwise an user could connect and the rest won't see him connected until your code executes again on their clients. So you'll need to use a Javascript TimeOut to repeat the call to server periodically. Keep an eye on performance when you stablish the period.
    LVL 83

    Expert Comment

    LVL 23

    Accepted Solution


    Yeah! SignalR will do the job!

    Addition to the above user link,

    Hope it helps u...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now