Click here to Skip to main content
16,005,236 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: problem with dynamic gridview Please help Pin
ToddHileHoffer5-Sep-07 4:16
ToddHileHoffer5-Sep-07 4:16 
GeneralRe: problem with dynamic gridview Please help Pin
Imran Khan Pathan5-Sep-07 4:18
Imran Khan Pathan5-Sep-07 4:18 
GeneralRe: problem with dynamic gridview Please help Pin
orsini5-Sep-07 4:39
orsini5-Sep-07 4:39 
QuestionCount/View Online Users Pin
wEb GuRu...5-Sep-07 3:14
wEb GuRu...5-Sep-07 3:14 
AnswerRe: Count/View Online Users Pin
ToddHileHoffer5-Sep-07 4:02
ToddHileHoffer5-Sep-07 4:02 
AnswerRe: Count/View Online Users Pin
Ahmad Adnan5-Sep-07 4:05
Ahmad Adnan5-Sep-07 4:05 
GeneralRe: Count/View Online Users Pin
Urs Enzler5-Sep-07 4:21
Urs Enzler5-Sep-07 4:21 
AnswerRe: Count/View Online Users Pin
N a v a n e e t h5-Sep-07 4:26
N a v a n e e t h5-Sep-07 4:26 
wEb GuRu... wrote:
I need to count number of users signed in to their account area on current time. Furthermore I need to view information of all users currently onlin.


You can create an application variable that holds all data you need. When each session starts, Session_Start event will be fired on Global.asax. You need to increment your application variable count here. In session_end decrease this value. This is the easy approach. But there are some problems with this

1- Session_End is not reliable
2- It's will be fired only if you are using inproc mode.

I have done this by creating a HTTPModule. For session end, I used cache and set Session timeout for cache. You need to create a delegate for Cache end, this will be similar like your session_end, but reliable.

wEb GuRu... wrote:
I think the main problem is handling the event when a user close its window.


This is a common issue. No events will be fired on server when user closes browser. You need to wait till the session/cache ends.


QuestionProblem with Ajax toolkit control Pin
Malayil alex5-Sep-07 3:03
Malayil alex5-Sep-07 3:03 
AnswerRe: Problem with Ajax toolkit control Pin
Imran Khan Pathan5-Sep-07 3:23
Imran Khan Pathan5-Sep-07 3:23 
GeneralRe: Problem with Ajax toolkit control Pin
Malayil alex5-Sep-07 3:50
Malayil alex5-Sep-07 3:50 
GeneralRe: Problem with Ajax toolkit control Pin
Imran Khan Pathan5-Sep-07 4:20
Imran Khan Pathan5-Sep-07 4:20 
GeneralRe: Problem with Ajax toolkit control Pin
Malayil alex5-Sep-07 18:08
Malayil alex5-Sep-07 18:08 
GeneralRe: Problem with Ajax toolkit control Pin
Imran Khan Pathan5-Sep-07 18:30
Imran Khan Pathan5-Sep-07 18:30 
GeneralRe: Problem with Ajax toolkit control Pin
Malayil alex5-Sep-07 18:55
Malayil alex5-Sep-07 18:55 
GeneralRe: Problem with Ajax toolkit control Pin
Imran Khan Pathan5-Sep-07 20:41
Imran Khan Pathan5-Sep-07 20:41 
GeneralRe: Problem with Ajax toolkit control Pin
Malayil alex5-Sep-07 21:05
Malayil alex5-Sep-07 21:05 
GeneralRe: Problem with Ajax toolkit control Pin
Imran Khan Pathan6-Sep-07 0:42
Imran Khan Pathan6-Sep-07 0:42 
QuestionRich Text Box Pin
.NET- India 5-Sep-07 2:30
.NET- India 5-Sep-07 2:30 
AnswerRe: Rich Text Box Pin
Imran Khan Pathan5-Sep-07 2:36
Imran Khan Pathan5-Sep-07 2:36 
AnswerRe: Rich Text Box Pin
Shujaat Ullah Khan6-Sep-07 1:12
Shujaat Ullah Khan6-Sep-07 1:12 
Questionadd rows to a databound GridView ASP.NET Control Pin
Herman<T>.Instance5-Sep-07 2:14
Herman<T>.Instance5-Sep-07 2:14 
AnswerRe: add rows to a databound GridView ASP.NET Control Pin
ToddHileHoffer5-Sep-07 3:51
ToddHileHoffer5-Sep-07 3:51 
AnswerRe: add rows to a databound GridView ASP.NET Control Pin
Herman<T>.Instance5-Sep-07 4:55
Herman<T>.Instance5-Sep-07 4:55 
Question.txt file content on page Pin
Mri1a5-Sep-07 1:47
Mri1a5-Sep-07 1:47 

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.