Click here to Skip to main content
15,905,912 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Need regular expression for US Cell Phone numbers Pin
J4amieC9-Jan-08 4:01
J4amieC9-Jan-08 4:01 
GeneralRe: Need regular expression for US Cell Phone numbers Pin
Rocky#9-Jan-08 4:03
Rocky#9-Jan-08 4:03 
GeneralRe: Need regular expression for US Cell Phone numbers Pin
J4amieC9-Jan-08 4:48
J4amieC9-Jan-08 4:48 
GeneralRe: Need regular expression for US Cell Phone numbers Pin
Rocky#9-Jan-08 19:23
Rocky#9-Jan-08 19:23 
Generalarrays of webcontrols Pin
Cuckoo9-Jan-08 0:55
Cuckoo9-Jan-08 0:55 
GeneralRe: arrays of webcontrols Pin
Michael Sync9-Jan-08 4:01
Michael Sync9-Jan-08 4:01 
GeneralRe: arrays of webcontrols Pin
Cuckoo9-Jan-08 20:45
Cuckoo9-Jan-08 20:45 
GeneralHandle all closing ways Pin
samerh9-Jan-08 0:32
samerh9-Jan-08 0:32 
Hi all,
iam using a javascript to lunch logoff function when a user presses X from the upper right corner of a browser. the JS function is as follows:
<br />
 <script type="text/javascript" language="javascript" ><br />
	    function Window_OnBeforeUnload()<br />
	        {<br />
		        var iX = window.document.body.offsetWidth - window.event.clientX ;<br />
		        var iY = window.event.clientY ;<br />
	            if (iX <=30 && iY < 0 )<br />
                    {<br />
	                    alert ("You will be logged Out From CID Good-Bye!");<br />
	                    window.open('http://localhost:2018/CID/Logout.aspx');<br />
	                   // window.close();<br />
                    }<br />
	        }    <br />
</script><br />

and in the body tag of the master page iam adding onbeforeunload="Window_OnBeforeUnload();" to execute the function.
My issue is that i want to close the browser after getting back from Logout.aspx. I have tried window.close() but is working some times and when it works it gives me a message that the browser is closing and dont close. I dont want this messgae to appear.
I know it is hard to capture all possible ways to close the browser but i need that because i want to free records on attempting to close i.e. i want to handle all closing ways that a browser can be closed by so i can execute a function. Is there a way to force the user to logoff other than this way?
Any ideas and thanks
QuestionNamespace for dynamically loaded web user control Pin
Federico Orlandini9-Jan-08 0:29
Federico Orlandini9-Jan-08 0:29 
GeneralRe: Namespace for dynamically loaded web user control Pin
DotNetXenon9-Jan-08 3:43
DotNetXenon9-Jan-08 3:43 
GeneralRe: Namespace for dynamically loaded web user control Pin
Michael Sync9-Jan-08 4:05
Michael Sync9-Jan-08 4:05 
GeneralDisplaying data from SQL Pin
Burim Rama9-Jan-08 0:14
Burim Rama9-Jan-08 0:14 
GeneralRe: Displaying data from SQL Pin
pmarfleet9-Jan-08 1:14
pmarfleet9-Jan-08 1:14 
Generaltype convertion Pin
bigphish9-Jan-08 0:06
bigphish9-Jan-08 0:06 
AnswerRe: type convertion Pin
Federico Orlandini9-Jan-08 0:31
Federico Orlandini9-Jan-08 0:31 
GeneralRe: type convertion Pin
bigphish9-Jan-08 0:49
bigphish9-Jan-08 0:49 
GeneralRe: type convertion Pin
Federico Orlandini9-Jan-08 1:06
Federico Orlandini9-Jan-08 1:06 
GeneralRe: type convertion Pin
Cuckoo9-Jan-08 1:21
Cuckoo9-Jan-08 1:21 
GeneralRe: type convertion Pin
Paddy Boyd9-Jan-08 1:57
Paddy Boyd9-Jan-08 1:57 
Questioncustom page size [modified] Pin
manowj9-Jan-08 0:02
manowj9-Jan-08 0:02 
GeneralException Handling Pin
danasegaranea8-Jan-08 23:38
danasegaranea8-Jan-08 23:38 
GeneralRe: Exception Handling Pin
Paddy Boyd8-Jan-08 23:39
Paddy Boyd8-Jan-08 23:39 
GeneralRe: Exception Handling Pin
danasegaranea8-Jan-08 23:41
danasegaranea8-Jan-08 23:41 
GeneralRe: Exception Handling Pin
Paddy Boyd9-Jan-08 0:00
Paddy Boyd9-Jan-08 0:00 
GeneralRe: Exception Handling Pin
danasegaranea9-Jan-08 0:32
danasegaranea9-Jan-08 0:32 

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.