Click here to Skip to main content
15,900,589 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
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 
Hi,

1. Why do you store the user count separately? What is wrong with count(*)? You have to write much more code (possible point of bugs etc.) when you store the count in an extra table.

2. Why do you store the session information within a table? You could use a static dataobject (could be a simple int) within your ASP.NET application. Just increment/decrement the counter whenever a session ends (use Global.asax for this)

3. To update the visible count on your site just query the static dataobject to get the active users. To get all registered users use the sql-query. You could do something like "Store the value for one hour. After one hour ask query the registered users again" You don't need a timer for this, just do it in a master page whenever you get a postback. To update the site you could use a little JavaScript that will force the client to update in an interval.

Hope this helps you a bit.

Regards
Sebastian

It's not a bug, it's a feature!

Check out my CodeProject article Permission-by-aspect.

Me in Softwareland.

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 
AnswerRe: Importing contacts from hotmail and aol Pin
SeMartens22-Apr-09 21:15
SeMartens22-Apr-09 21:15 

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.