Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Redirect to a new window
Message
 
To
08/04/2003 08:35:03
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00775039
Message ID:
00775094
Views:
10
Hi Rex,

To Open the page in Code-Behind do the following:
Dim sUrl As String = "MyPage.aspx"
Dim sFeatures As String = "'height=320;width=160;left=100;top=50'"

' Create a client script to open the window
Dim sScript As String
sScript &= "<script language=javascript>"
sScript &= "window.open('" & sUrl & "',''," & sFeatures & ");"
sScript &= "</script>"

' Write it into the output stream for immediate execution
Response.Write(sScript)
To Open using Javascript on the client side:
<a href="javascript:my_window=window.open('MyPage.aspx','my_window','height=320;width=160;left=100;top=50');my_window.focus()"> Go to MyPage</a> 
>All,
>
>Here's a simple one: How do I make a page open in a new window in a Web app?
>
>Thanks
>
>Rex
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Reply
Map
View

Click here to load this message in the networking platform