473,387 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

exit asp-application

jac
Hey All,

In the Asp-application we have an exit-button (not the X of IE).
How can you exit an asp-app? Is it possible to do the same as X on IE, but
in that case I can ask some questions to the user, with X on IE there is
nothing I can do.

tkx
jac
Nov 16 '05 #1
2 1309
There's a javscript function window.close() that you could use ... You can't
close IE from asp.net

--
Patrik Löwendahl [C# MVP]
www.cshrp.net - "Elegant code by witty programmers"

"jac" <ja*@discussions.microsoft.com> wrote in message
news:85**********************************@microsof t.com...
Hey All,

In the Asp-application we have an exit-button (not the X of IE).
How can you exit an asp-app? Is it possible to do the same as X on IE, but
in that case I can ask some questions to the user, with X on IE there is
nothing I can do.

tkx
jac

Nov 16 '05 #2
Hi,

You can close the browser using window.Close

now it will works fine if the window was opened using window.open , if the
user created browser window you will get a warning reading something like "
the application is attempting to close the window ...."

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"jac" <ja*@discussions.microsoft.com> wrote in message
news:85**********************************@microsof t.com...
Hey All,

In the Asp-application we have an exit-button (not the X of IE).
How can you exit an asp-app? Is it possible to do the same as X on IE, but
in that case I can ask some questions to the user, with X on IE there is
nothing I can do.

tkx
jac

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Patrick J. Schouten | last post by:
I am new to ASP/VBScript and I am trying to format a texbox when a user exits it. In Visual Basic you could put the following in the Exit property of the textbox: textbox1 = Format(textbox1,...
1
by: JT | last post by:
i am using server.execute to execute another .asp page. however, i would like the page to stop executing if it encounters an error - something like exit sub/function, the problem is that this is...
1
by: deepak | last post by:
I am using the code below to implement 1 time entry and exit popup. The entry popup works fine, but the exit popup opens even if you browse from one page to the other on the same site. I want it to...
4
by: highway of diamonds | last post by:
a bit of a 'hacker' with javascript but can any one tell me why this code throws up "'exit' is undefined" and how to sort. the code does what I want it to, but hate errors I can't explain. TIA...
1
by: Jason Huang | last post by:
Hi, The VB has the "Exit" method on which some condition it will jump out the function, e.g., "If Not ValidateData() Then Exit Function" In C#, do we have an equivalent method to the VB's...
1
by: webonomic | last post by:
A number of topics ask how to solve the "Cannot use a leading .. to exit above the top directory" error. I am having the same problem with an asp.net 2.0 website. The site works fine on...
1
by: Henry Lee | last post by:
Hi, I am using Asp 2.0 environemnt to develop our company Intranet. This should be a easy task for some of you but I just have no clue to make a exit button on the web page for user to click and...
2
by: aks | last post by:
Hi, I'm getting this issue "Cannot use a leading .. to exit above the top directory" when i access in my server, it is working fine in my local. We are using RewriterRule in web.config file. ...
3
by: Paulo | last post by:
strSQL = Server.MapPath("remessa\\") + "CSG" + (DateTime.Now.Year.ToString().Substring(DateTime.Now.Year.ToString().Length - 1) + DateTime.Now.Month.ToString("00") +...
3
by: sony.m.2007 | last post by:
Hi, I’m new to ASP.NET I have written a function with a return value. If the arguments to the functions are invalid means I’m giving exit(0) Else means do some process and return a value. When...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.