Click here to Skip to main content
15,906,558 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Regarding Session_End() in global.asax Pin
N a v a n e e t h24-Dec-08 0:18
N a v a n e e t h24-Dec-08 0:18 
GeneralRe: Regarding Session_End() in global.asax Pin
Brij24-Dec-08 0:25
mentorBrij24-Dec-08 0:25 
GeneralRe: Regarding Session_End() in global.asax Pin
Abhijit Jana24-Dec-08 2:51
professionalAbhijit Jana24-Dec-08 2:51 
GeneralRe: Regarding Session_End() in global.asax Pin
N a v a n e e t h24-Dec-08 16:52
N a v a n e e t h24-Dec-08 16:52 
GeneralRe: Regarding Session_End() in global.asax Pin
Tamer Oz24-Dec-08 22:13
Tamer Oz24-Dec-08 22:13 
AnswerRe: Regarding Session_End() in global.asax Pin
Brij23-Dec-08 23:53
mentorBrij23-Dec-08 23:53 
AnswerRe: Regarding Session_End() in global.asax Pin
N a v a n e e t h24-Dec-08 0:06
N a v a n e e t h24-Dec-08 0:06 
AnswerRe: Regarding Session_End() in global.asax Pin
Abhijit Jana24-Dec-08 2:48
professionalAbhijit Jana24-Dec-08 2:48 
Hey div_gusain,
Just few month back , I had face the same problem and done some work around. Hope you will like this Smile | :)

If you are using MasterPage then use following code on the OnUnload Event of Master Page
onunload="DeleteUserLog()"


Here is DeleteUserLog Funtcion ,

function DeleteUserLog()
     {
         // Check Browser Close [X] , Alt+F4 , File -> Close   
          if(window.event.clientX < 0 && window.event.clientY <0)
           {
            window.open("CloseSession.aspx", "OpenWindow_Close_Session",'left=12000,top=1200,width=10,height=1');
           }
     }


CloseSession.aspx is a temporary popup file, that will do the rest of the job for you !!!
<code>if(Session["UserID"] != null)
       {
       // Delete User log when user close the browser
        //Perform the data base operation here.

       }
       //Close the popup window
       string strPopupScript = "<script language="javascript">self.close();</script>";
       Page.ClientScript.RegisterStartupScript(typeof(Page), "PopUpScript", strPopupScript);</code>


Let me know if this helps you Wink | ;)

cheers,
Abhijit

Questionmultiline textbox in mobile form Pin
M LN Rao23-Dec-08 20:33
M LN Rao23-Dec-08 20:33 
QuestionAn unhandled exception ("System.Net.WebException") occured in aspnet_wp.exe Pin
obarahmeh23-Dec-08 19:38
obarahmeh23-Dec-08 19:38 
AnswerRe: An unhandled exception ("System.Net.WebException") occured in aspnet_wp.exe Pin
N a v a n e e t h23-Dec-08 19:50
N a v a n e e t h23-Dec-08 19:50 
QuestionSet LinkButton from MasterPage as default button on the page. Pin
anada888623-Dec-08 19:14
anada888623-Dec-08 19:14 
AnswerRe: Set LinkButton from MasterPage as default button on the page. Pin
N a v a n e e t h23-Dec-08 19:49
N a v a n e e t h23-Dec-08 19:49 
GeneralRe: Set LinkButton from MasterPage as default button on the page. Pin
anada888623-Dec-08 19:59
anada888623-Dec-08 19:59 
AnswerRe: Set LinkButton from MasterPage as default button on the page. Pin
anada888623-Dec-08 20:40
anada888623-Dec-08 20:40 
GeneralRe: Set LinkButton from MasterPage as default button on the page. Pin
N a v a n e e t h23-Dec-08 20:58
N a v a n e e t h23-Dec-08 20:58 
AnswerRe: Set LinkButton from MasterPage as default button on the page. Pin
anada888623-Dec-08 21:24
anada888623-Dec-08 21:24 
QuestionAsp.Net user Control use in C# project. Pin
anish27patel23-Dec-08 18:35
anish27patel23-Dec-08 18:35 
AnswerRe: Asp.Net user Control use in C# project. Pin
_AK_23-Dec-08 19:35
_AK_23-Dec-08 19:35 
AnswerRe: Asp.Net user Control use in C# project. Pin
Paddy Boyd23-Dec-08 22:16
Paddy Boyd23-Dec-08 22:16 
GeneralRe: Asp.Net user Control use in C# project. Pin
anish27patel23-Dec-08 23:57
anish27patel23-Dec-08 23:57 
QuestionActivex control for FTP Pin
sujithkumarsl23-Dec-08 18:27
sujithkumarsl23-Dec-08 18:27 
AnswerRe: Activex control for FTP Pin
Abhijit Jana23-Dec-08 18:37
professionalAbhijit Jana23-Dec-08 18:37 
AnswerRe: Activex control for FTP:Repost Pin
Brij23-Dec-08 18:38
mentorBrij23-Dec-08 18:38 
Questionhow to resolve com Exception Pin
koolprasad200323-Dec-08 18:06
professionalkoolprasad200323-Dec-08 18:06 

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.