Click here to Skip to main content
12,884,509 members (31,597 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET
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 20-Feb-13 22:16pm
Updated 28-Feb-13 5:46am
v2
Comments
Vardhan Desai 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?
aspnet_regiis -i 28-Feb-13 11:54am
   
Don't worry.. display it at both the places..No body is going to stop you..Its your website....
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

hi, try this link instead of setting the Application state in the global.asax file , set it when someone logges in
  Permalink  
Comments
_Amy 28-Feb-13 22:43pm
   
Your link describes the Application state. See:
A Walkthrough to Application State[^]
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  

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

    Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170422.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100