Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#ASP.NET
how to create and display users online in asp.net,c#?
Posted 11-Aug-11 20:07pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Couple of articles that should help you get started -
Online active users counter in ASP.NET[^]
http://dotnetslackers.com/articles/aspnet/Tracking-User-Activity.aspx[^]
 
Here is another one, which can show you the list of users online[^].
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

CREATE A GRID LIKE THIS AND GIVE TWO BUTTONS GREEN AND RED IN A FOLDER
 img...................
 

 
<asp:gridview id="dgvUsers" runat="server" pagesize="5" width="158px" autogeneratecolumns="False" xmlns:asp="#unknown">
DataKeyNames="status" OnRowDataBound="dgvUsers_RowDataBound" GridLines="None"
ShowHeader="False">

<asp:templatefield>

 <asp:image id="imgGreen" runat="server" height="16px" imageurl="~/Img/green.jpg">
Width="16px" />
<asp:image id="imgRed" runat="server" height="16px" imageurl="~/Img/red.jpg">
Width="16px" />



<asp:boundfield datafield="USERNAME" headertext="USERNAME" />
<asp:boundfield datafield="Status" headertext="Status" visible="False" />


<asp:image id="Image1" runat="server" imageurl="~/Img/green.jpg" />


 

use a timer to bind the grid with the datatable from the database.
<asp:timer id="tmrUser" ontick="tmrUser_Tick" runat="server" interval="30000" xmlns:asp="#unknown">

call the databind function in timer tick event.. and change the interval to change refresh time...I suggest to put the grid in an update pannel.....
 
HOPE this will Work...!!!!!!!!!!!!!
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hiiii,
 
Please check this link..........
Online active users counter in ASP.NET[^]
  Permalink  
Comments
Manfred R. Bihy at 12-Aug-11 10:45am
   
One period '.' and one 'i' would suffice!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 529
1 OriginalGriff 307
2 Damith Weerasinghe 295
3 ravikhoda 260
4 Tadit Dash 180
0 Sergey Alexandrovich Kryukov 10,974
1 OriginalGriff 6,667
2 Peter Leow 4,760
3 Abhinav S 3,813
4 Maciej Los 3,565


Advertise | Privacy | Mobile
Web02 | 2.8.140421.2 | Last Updated 12 Aug 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid