Click here to Skip to main content
Rate this: bad
good
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
soniya_198
Edited 28-Feb-13 5:46am
v2
Comments
Vardhan Desai at 21-Feb-13 5:28am
   
Question is little confusing. . . Pls elobrate
Sandeep Mewara at 21-Feb-13 11:46am
   
Please elaborate more on what are you trying to do?
aspnet_regiis -i at 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 at 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
0 OriginalGriff 6,649
1 Sergey Alexandrovich Kryukov 6,280
2 CPallini 5,230
3 George Jonsson 3,574
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web04 | 2.8.140921.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2014
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