Popup window

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

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

Popup window

 
0
  #1
Dec 29th, 2005
Hi,

I'm programming in ASP.net (C#) and I want to open the page with our reservation system in the new popup window (well, I'm not glad to do so, but it must be :rolleyes: ). Is there some way to do this using C#?

Thanx,
Steve
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Popup window

 
0
  #2
Dec 29th, 2005
The best way is to author a JavaScript that does so. You don't want a complete server roundtrip just to open a window!

You can add scripts via "RegisterStartupScript" method of the Page object.
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 275
Reputation: f1 fan is an unknown quantity at this point 
Solved Threads: 11
f1 fan f1 fan is offline Offline
Posting Whiz in Training

Re: Popup window

 
0
  #3
Jan 12th, 2006
are you talking about a popup window or a whole new webpage/site? if you need to do a new browser window with a webpage then in the link that you have you need to set the target="_blank"

if you want to just do a popup window then the best way is a javascript:window.popup() script on the client. You can do this a few ways - code it in the source on the aspx page, have a function in a script file somewhere (preferable to script in the html) or call the ClientRegisterScript in your code behind.
Reply With Quote Quick reply to this message  
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

Re: Popup window

 
0
  #4
Jan 12th, 2006
Thanks, I've solved that with blank window, works fine
S
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


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