Wrox Programmer Forums
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 4th, 2008, 11:37 PM
Authorized User
Join Date: May 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default closing browser

Hi..can you give me some sample for browser close event on server side..(with out using Ajax)

Thank you...

Old June 5th, 2008, 09:15 AM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

Strictly speaking you can't close the browser from the server. You have to emit client-side script to do it.

Usually, something like "this.window.close()" will do it.


Similar Threads
Thread Thread Starter Forum Replies Last Post
invalidate the session on closing of browser VinodTewthia Pro JSP 4 July 21st, 2007 12:12 AM
browser closing vamsivaila Pro Java 0 January 3rd, 2007 06:43 AM
Determine method of closing browser chrscote Javascript How-To 2 August 31st, 2006 05:34 AM
Closing browser using a Button MichaelTJ ASP.NET 1.0 and 1.1 Basics 3 December 18th, 2003 02:06 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.