Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old June 25th, 2007, 06:43 AM
Registered User
 
Join Date: May 2006
Location: Bangalore, Karanataka, India.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to wunnavabk
Default Master pages

Hi
Can any one tell me how to close the browser window when we are using master pages.

i have a link button (Signout) when i click on that button i want to close the browser window. the link button is present in master page.

Please reply ASAP if u find the solution

Regards
Bhaskar Kiran
Mail:wunnavabk@gmail.com
  #2 (permalink)  
Old June 25th, 2007, 07:09 AM
Authorized User
 
Join Date: Jan 2007
Location: Islamabad, Punjab, Pakistan.
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aliirfan84
Default

U just need to write following code against link button event.

Response.Write('<script language = 'javascript'>window.close()</script>');

Regards
Ali Irfan
aliirfan84@gmail.com



Similar Threads
Thread Thread Starter Forum Replies Last Post
Master Pages Jayahar ASP.NET 3.5 Basics 1 September 2nd, 2008 04:20 PM
Master Pages, Content Pages and CSS carliviris Visual Studio 2005 0 January 8th, 2008 05:56 PM
Master Page/Content Pages coleenh ASP.NET 2.0 Basics 1 September 26th, 2006 02:17 PM
master/detail pages with Repeaters ben21 Classic ASP Basics 0 September 19th, 2005 06:18 AM
detail-master pages katie456 Classic ASP Databases 1 June 13th, 2003 04:16 AM





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