Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use Server.Transfer to open page in a new window

Status
Not open for further replies.

royyan

Programmer
Jul 18, 2001
148
US
Is there anybody know how to use Server.Transer to open a page in a new window with specific size? Many thanks!
 
You cannot. Remember that ASP.NET is a server-side technology. As such the languages used eg VB.NET are also server-side languages. To do any real client side manipulation you need to use a client side language such as javascript. You can write javascript to your page on certain events using the RegisterStartupScript method.

In the spot you were going to use the Server.Transfer build a string containing your javascript (remember to include <script ... tags) and use RegisterStartupScript to send it to the client.

A great javascript resource can be found here RegisterStartupScript references can be found all over this forum simply use the search functions here. That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top