Exiting an ASP.net application

G

Guest

I have a link button that I want to have the program closed when I click
it.
The quesition is what is the syntax that makes this possible.

<linkdefhere onclick="javascript:window.close();">

I can't figure out where to put this line of code in my Asp.net program
 
H

Hans Kesting

bbdobuddy said:
<linkdefhere onclick="javascript:window.close();">

I can't figure out where to put this line of code in my Asp.net
program

if you put a
<a href="#" onclick="window.close()">Close browser</a>
somewhere on your page (in the html), then your visitor will
see a link that will close his browser window.

If this was also his last browser-window, then his session is ended,
as far as he is concerned, as the session-cookie has gone.
On the server that session will last probably another 20 minutes!
(by default: 20 minutes after the last request)

This link will *not* close the web-application itself, that will keep running
indefinitely, serving any number of users.

Hans Kesting
 
Joined
Sep 21, 2006
Messages
2
Reaction score
0
Exiting an ASP.net application & Close all open browsers

hi, I wont to close all open browser windows from aperticular application, when i close the main page. pls help me on this issue. Application is running on Intranet. and develped in ASP.NET 2.0
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top