Click here to Skip to main content
15,878,945 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi
i m making web application on social networking site using vs 2010 and asp.net, in which i want to display currently online user on user's as well as admin page.
Posted
Updated 28-Feb-13 5:46am
v2
Comments
MalwareTrojan 21-Feb-13 5:28am    
Question is little confusing. . . Pls elobrate
Sandeep Mewara 21-Feb-13 11:46am    
Please elaborate more on what are you trying to do?
bbirajdar 28-Feb-13 11:54am    
Don't worry.. display it at both the places..No body is going to stop you..Its your website....

hi, try this link instead of setting the Application state in the global.asax file , set it when someone logges in
 
Share this answer
 
Comments
_Amy 28-Feb-13 22:43pm    
Your link describes the Application state. See:
A Walkthrough to Application State[^]
I got your first point. To display the no of users online you need to use Application state. Count the no of user's, set it in a session and access it in your master/web page. Check the links out:
A Walkthrough to Application State[^]
ASP.NET Application State Overview[^]
Application State in ASP.NET[^]

To display admin page you can set a link in master page. And ask user to enter admin UserID and Password. If the credentials provided by user is correct then redirect to Admin Page. Otherwise, you can use Asp.net Membership[^] to do that. See the links:
How To: Use Role Manager in ASP.NET[^]
Understanding ASP.NET Roles and Membership - A Beginner's Tutorial[^]



---Amit
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900