How to close window

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2005
Posts: 26
Reputation: Stivi is an unknown quantity at this point 
Solved Threads: 0
Stivi's Avatar
Stivi Stivi is offline Offline
Light Poster

How to close window

 
0
  #1
Dec 14th, 2006
Hi,

is there some way to close the window after clicking the button on webpage? I found some examples in VB.net, but I want to make it using C#...

S
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 79
Reputation: nikkiH is an unknown quantity at this point 
Solved Threads: 4
nikkiH's Avatar
nikkiH nikkiH is offline Offline
Junior Poster in Training

Re: How to close window

 
0
  #2
Dec 28th, 2006
From my application:

  1.  
  2. // close the page if successful update
  3. RegisterStartupScript("load", "<script type=\"text/javascript\">\n" +
  4. "self.close();\n" +
  5. "<" + "/script>");
Last edited by nikkiH; Dec 28th, 2006 at 6:02 pm.
Google is your friend. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
Bored? Visit http://www.kaelisspace.com/
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 18186 | Replies: 1
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC