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

ASP.NET

 
AnswerRe: Click event of WebDayView in user control doesn't work Pin
Sandeep Mewara17-Jun-10 6:44
mveSandeep Mewara17-Jun-10 6:44 
QuestionASP TextBox control showing "" (zero-length string) always Pin
Shailender K17-Jun-10 4:52
Shailender K17-Jun-10 4:52 
AnswerRe: ASP TextBox control showing "" (zero-length string) always Pin
Sandeep Mewara17-Jun-10 6:40
mveSandeep Mewara17-Jun-10 6:40 
GeneralRe: ASP TextBox control showing "" (zero-length string) always Pin
Shailender K17-Jun-10 19:45
Shailender K17-Jun-10 19:45 
GeneralRe: ASP TextBox control showing "" (zero-length string) always Pin
Sandeep Mewara17-Jun-10 19:47
mveSandeep Mewara17-Jun-10 19:47 
AnswerRe: ASP TextBox control showing "" (zero-length string) always Pin
T M Gray17-Jun-10 10:01
T M Gray17-Jun-10 10:01 
QuestionApplication object + logged in users Pin
Hemant Thaker17-Jun-10 2:51
Hemant Thaker17-Jun-10 2:51 
AnswerRe: Application object + logged in users Pin
Brij17-Jun-10 5:37
mentorBrij17-Jun-10 5:37 
See, when user log out by signout or timeout then session_end get called so user gets deleted, but when user close the browser then session_end is called only when the time out expires. So when user tries just after closing the browser and try to open the application then it shows as logged in but if try to access after the session timeout then would not show because session_end will be called after timeout.

So if you want to logout just after the browser close then you have to detect the browser close and logout the user by code. So for this do the following
- Make an temporary page
- On pageload of this remove the user from applicaton object
- Now on every page of your application detect the browser close and load this page as popup with 0 size and after loading close this popup.

The code for detecting the browser close is like
function CheckBrowser()
{
     // Check Browser Close [X] , Alt+F4 , File -> Close  
     if(window.event.clientX < 0 && window.event.clientY <0)
    {
          window.open("Temp.aspx", 
                "Operation",'left=12000,top=1200,width=10,height=1');
    }
}

here Temp.aspx is your temporary page.

For details about Application Objects you han have a look to one of my article
A walkthrough to Application State

QuestionRe: Application object + logged in users Pin
Hemant Thaker17-Jun-10 8:53
Hemant Thaker17-Jun-10 8:53 
GeneralRe: Application object + logged in users Pin
T M Gray17-Jun-10 11:09
T M Gray17-Jun-10 11:09 
Questionneed Intiligant algorithm Pin
eslam soliman17-Jun-10 2:00
eslam soliman17-Jun-10 2:00 
AnswerRe: need Intiligant algorithm Pin
R. Giskard Reventlov17-Jun-10 2:07
R. Giskard Reventlov17-Jun-10 2:07 
Questionhow to enter dataset value into the combobox as Selected Text Pin
Amit Spadez17-Jun-10 1:43
professionalAmit Spadez17-Jun-10 1:43 
AnswerRe: how to enter dataset value into the combobox as Selected Text Pin
shreekar17-Jun-10 1:59
shreekar17-Jun-10 1:59 
GeneralRe: how to enter dataset value into the combobox as Selected Text Pin
Amit Spadez17-Jun-10 2:05
professionalAmit Spadez17-Jun-10 2:05 
GeneralRe: how to enter dataset value into the combobox as Selected Text Pin
shreekar17-Jun-10 3:30
shreekar17-Jun-10 3:30 
QuestionDynamic grid problem Pin
Amit Patel198517-Jun-10 1:19
Amit Patel198517-Jun-10 1:19 
QuestionHttpContext.Current.Server.MapPath Pin
KishoreT17-Jun-10 0:03
KishoreT17-Jun-10 0:03 
AnswerRe: HttpContext.Current.Server.MapPath Pin
Jens Meyer17-Jun-10 1:18
Jens Meyer17-Jun-10 1:18 
AnswerRe: HttpContext.Current.Server.MapPath Pin
KishoreT17-Jun-10 2:02
KishoreT17-Jun-10 2:02 
QuestionAjaxPro and Actionchart issue? Pin
Jeneesh K. Velayudhan16-Jun-10 23:17
Jeneesh K. Velayudhan16-Jun-10 23:17 
QuestionASP.Net MVC 2.0 Sample Project Required Pin
Member 401661616-Jun-10 22:46
Member 401661616-Jun-10 22:46 
AnswerRe: ASP.Net MVC 2.0 Sample Project Required Pin
R. Giskard Reventlov16-Jun-10 23:12
R. Giskard Reventlov16-Jun-10 23:12 
Questionreturning null value from procedure Pin
developerit16-Jun-10 22:05
developerit16-Jun-10 22:05 
AnswerRe: returning null value from procedure Pin
Tej Aj17-Jun-10 0:52
Tej Aj17-Jun-10 0:52 

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.