Click here to Skip to main content
15,890,579 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Debuging Tips And Memory Read? Pin
Luc Pattyn9-Feb-12 23:28
sitebuilderLuc Pattyn9-Feb-12 23:28 
QuestionReport not published Pin
fareedulhassan7-Feb-12 8:32
professionalfareedulhassan7-Feb-12 8:32 
AnswerRe: Report not published Pin
thatraja7-Feb-12 10:51
professionalthatraja7-Feb-12 10:51 
Questionexpress checkout keep loading did'tn return to merchant Pin
awakepoh6-Feb-12 21:09
awakepoh6-Feb-12 21:09 
AnswerRe: express checkout keep loading did'tn return to merchant Pin
Richard MacCutchan6-Feb-12 22:48
mveRichard MacCutchan6-Feb-12 22:48 
QuestionKilling the session on click of Brwoser X Pin
hooters_263-Feb-12 1:44
hooters_263-Feb-12 1:44 
AnswerRe: Killing the session on click of Brwoser X Pin
Dave Kreskowiak3-Feb-12 2:30
mveDave Kreskowiak3-Feb-12 2:30 
AnswerRe: Killing the session on click of Brwoser X Pin
sund7wells5-Feb-12 20:05
sund7wells5-Feb-12 20:05 
You need one javascript function to capture browser unload event and one hidden server control button with click event. In that javascript function write code to click the hidden button. In the button click event you can do the actions you want like session clean up.

Ex:
//Javascript
C#
javascript:window.onbeforeunload = function(){
   if((window.event.clientX<0) ||
      (window.event.clientY<0)){
      if(document.getElementById("ctl00$testbutton")!=null)
      document.getElementById("ctl00$testbutton").onclick();
   }
     
 }



//button event
C#
protected void testbutton_ServerClick(object sender, EventArgs e)
    {        Session["test"]=null; //close particular session
        //or
       Session.Abandon();//close all sessions
}


Hope it helps
GeneralRe: Killing the session on click of Brwoser X Pin
Not Active6-Feb-12 1:33
mentorNot Active6-Feb-12 1:33 
QuestionCould I improve my class which contains multiple class references Pin
Simon_Whale2-Feb-12 22:48
Simon_Whale2-Feb-12 22:48 
Question.net GridView error(server tag not well formed) Pin
brindhasudar2-Feb-12 5:21
brindhasudar2-Feb-12 5:21 
GeneralRe: .net GridView error(server tag not well formed) Pin
Manfred Rudolf Bihy2-Feb-12 5:37
professionalManfred Rudolf Bihy2-Feb-12 5:37 
Question.Net and Windows API Pin
Mohibur Rashid1-Feb-12 22:43
professionalMohibur Rashid1-Feb-12 22:43 
AnswerRe: .Net and Windows API Pin
Dave Kreskowiak2-Feb-12 2:23
mveDave Kreskowiak2-Feb-12 2:23 
GeneralRe: .Net and Windows API Pin
Mohibur Rashid2-Feb-12 11:35
professionalMohibur Rashid2-Feb-12 11:35 
GeneralRe: .Net and Windows API Pin
Dave Kreskowiak2-Feb-12 13:40
mveDave Kreskowiak2-Feb-12 13:40 
AnswerRe: .Net and Windows API Pin
Abhinav S2-Feb-12 5:28
Abhinav S2-Feb-12 5:28 
QuestionCreating Admin Page Pin
pimzy31-Jan-12 18:38
pimzy31-Jan-12 18:38 
AnswerRe: Creating Admin Page Pin
Richard MacCutchan31-Jan-12 21:23
mveRichard MacCutchan31-Jan-12 21:23 
GeneralRe: Creating Admin Page Pin
pimzy1-Feb-12 19:58
pimzy1-Feb-12 19:58 
AnswerRe: Creating Admin Page Pin
Eddy Vluggen1-Feb-12 12:25
professionalEddy Vluggen1-Feb-12 12:25 
GeneralRe: Creating Admin Page Pin
pimzy1-Feb-12 19:57
pimzy1-Feb-12 19:57 
GeneralRe: Creating Admin Page Pin
Eddy Vluggen2-Feb-12 5:54
professionalEddy Vluggen2-Feb-12 5:54 
QuestionWhich books to refer..... Pin
Jαved30-Jan-12 21:18
professionalJαved30-Jan-12 21:18 
AnswerRe: Which books to refer..... Pin
thatraja30-Jan-12 22:25
professionalthatraja30-Jan-12 22:25 

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.