I have a question on this problem upon clicking a link 2 times it will clear the session , the thing i want to do here is to record a log of the user logging in and out , but the scenario is what if the user did not manually log out (e.g clicking on the "X" button of the browser or pressing Alt+F4) i would also want to record this as log out into the database.I have already found a method for it but however clicking on a link 2 times causes it to clear the session automatically.
Buttons work perfectly no matter how many times i click on the button but the Menu Item does not work perfectly.
This is the links i used :
What i would have thought is because of Async Postback that causes it to be like this.Please advice me.
I was wondering what have i done wrong above? Why wouldn't it work since in debug mode it actually went pass the "RegisteronsubmitStatement" method.
Page.ClientScript.RegisteronsubmitStatement(Me.GetType(), "onsubmitScript", "g_isPostBack = true;")
Please guide me thank you.
This post has been edited by xLilHoPpinG: 15 November 2012 - 05:17 AM