Click here to Skip to main content
15,891,529 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Access input hidden value of a usercontrol in another usercontrol Pin
Technobizz23-Apr-09 2:42
Technobizz23-Apr-09 2:42 
GeneralRe: Access input hidden value of a usercontrol in another usercontrol Pin
Nyoti Rukadikar23-Apr-09 3:01
Nyoti Rukadikar23-Apr-09 3:01 
GeneralRe: Access input hidden value of a usercontrol in another usercontrol Pin
Technobizz23-Apr-09 3:43
Technobizz23-Apr-09 3:43 
GeneralRe: Access input hidden value of a usercontrol in another usercontrol Pin
Nyoti Rukadikar23-Apr-09 4:18
Nyoti Rukadikar23-Apr-09 4:18 
GeneralRe: Access input hidden value of a usercontrol in another usercontrol Pin
Technobizz23-Apr-09 8:36
Technobizz23-Apr-09 8:36 
QuestionDevelop Library like SCRIBD or Google Books Pin
abthea22-Apr-09 23:27
abthea22-Apr-09 23:27 
AnswerRe: Develop Library like SCRIBD or Google Books Pin
Ashfield23-Apr-09 1:52
Ashfield23-Apr-09 1:52 
QuestionGet online users count and registered users count ( How wrong is my logic ? #1 ) Pin
Hristiyan22-Apr-09 23:06
Hristiyan22-Apr-09 23:06 
Good day!
I read several acticles about getting the "users online count" and "registered users count". However most of them were not full or lack performance. So i decided to make my own logic and i would like to share it with you. Can you please comment on it ? Is my logic wrong ?
Get registered users count:
DB logic:
- Store the count in a special table on the SQL server as a parameter. Increment the count when a new user is created. Decrement count when user is deleted ( or expired ). There is an alternative to SELECT COUNT(*) FROM Users...... but i discarded it. I don't think it's the best way to achieve my goal.

Get online users count:
DB logic:
- Store session information in a special table on the SQL server. Update the table whenever an activity is idicated ( the important here is the LastActiveDate and ExpirationDate ... which determine if the session is expired ).
- Logic for purging expired sessions and return the online users count after the purging.

ASP.NET
Web Server logic:
Web the application is started ( Application_Start Global.asax ) i start a System.TIMERS.TIMER with interval of 10 minutes. Every 10 minutes i get the registered users count, purge the expired sessions , get online users count and keep the stored data as static. On Application_End i dispose the timer.
However all my web forms are inherited by a base form in which "Page_Load" handler i idicate an activity and update the session information table on the sql server.
I'm not quite sure if my logic is right about all those steps. Please comment.
Best wishesh , Hristiyan
AnswerRe: Get online users count and registered users count ( How wrong is my logic ? #1 ) Pin
SeMartens23-Apr-09 0:33
SeMartens23-Apr-09 0:33 
GeneralRe: Get online users count and registered users count ( How wrong is my logic ? #1 ) Pin
Hristiyan23-Apr-09 1:43
Hristiyan23-Apr-09 1:43 
GeneralRe: Get online users count and registered users count ( How wrong is my logic ? #1 ) Pin
SeMartens23-Apr-09 2:53
SeMartens23-Apr-09 2:53 
GeneralRe: Get online users count and registered users count ( How wrong is my logic ? #1 ) Pin
Hristiyan23-Apr-09 3:28
Hristiyan23-Apr-09 3:28 
GeneralRe: Get online users count and registered users count ( How wrong is my logic ? #1 ) Pin
SeMartens23-Apr-09 3:33
SeMartens23-Apr-09 3:33 
QuestionFirst time starting with HTTPS hosting Pin
Nadia Monalisa22-Apr-09 22:44
Nadia Monalisa22-Apr-09 22:44 
QuestionHow to ReFresh a user Control Pin
Vimalsoft(Pty) Ltd22-Apr-09 22:26
professionalVimalsoft(Pty) Ltd22-Apr-09 22:26 
AnswerRe: How to ReFresh a user Control Pin
Deshbir Singh22-Apr-09 23:14
Deshbir Singh22-Apr-09 23:14 
GeneralRe: How to ReFresh a user Control Pin
Vimalsoft(Pty) Ltd22-Apr-09 23:35
professionalVimalsoft(Pty) Ltd22-Apr-09 23:35 
AnswerRe: How to ReFresh a user Control Pin
Nyoti Rukadikar23-Apr-09 0:20
Nyoti Rukadikar23-Apr-09 0:20 
GeneralRe: How to ReFresh a user Control Pin
Vimalsoft(Pty) Ltd23-Apr-09 0:23
professionalVimalsoft(Pty) Ltd23-Apr-09 0:23 
GeneralRe: How to ReFresh a user Control Pin
Nyoti Rukadikar23-Apr-09 1:42
Nyoti Rukadikar23-Apr-09 1:42 
GeneralRe: How to ReFresh a user Control Pin
Vimalsoft(Pty) Ltd23-Apr-09 1:55
professionalVimalsoft(Pty) Ltd23-Apr-09 1:55 
GeneralRe: How to ReFresh a user Control Pin
Nyoti Rukadikar23-Apr-09 2:05
Nyoti Rukadikar23-Apr-09 2:05 
Questionajax tab panel validation Pin
billcodes22-Apr-09 21:34
billcodes22-Apr-09 21:34 
AnswerRe: ajax tab panel validation Pin
SayreCC22-Apr-09 22:19
SayreCC22-Apr-09 22:19 
QuestionImporting contacts from hotmail and aol Pin
Prashant B. Lavate22-Apr-09 20:56
Prashant B. Lavate22-Apr-09 20:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.