G Guest Apr 22, 2004 #1 I want to open a new window through code. Can someone provide me with an example or point me to one in the VB.Net language. Thank Devin
I want to open a new window through code. Can someone provide me with an example or point me to one in the VB.Net language. Thank Devin
S Steve C. Orr [MVP, MCSD] Apr 22, 2004 #2 You can open a new window using javascript such as this: a=window.open('MyPage.aspx','MyWindow') There are all kinds of options for setting window properties such as window size and toolbar visibility. Here's more info: http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp You can use the RegisterClientScriptBlock or RegisterStartupScript functions to help you output the javascript from your server code. Here's more info on these: http://msdn.microsoft.com/library/d...UIPageClassRegisterClientScriptBlockTopic.asp http://msdn.microsoft.com/library/d...mWebUIPageClassRegisterStartupScriptTopic.asp -- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net Devin said: I want to open a new window through code. Can someone provide me with an Click to expand... example or point me to one in the VB.Net language. Thanks
You can open a new window using javascript such as this: a=window.open('MyPage.aspx','MyWindow') There are all kinds of options for setting window properties such as window size and toolbar visibility. Here's more info: http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp You can use the RegisterClientScriptBlock or RegisterStartupScript functions to help you output the javascript from your server code. Here's more info on these: http://msdn.microsoft.com/library/d...UIPageClassRegisterClientScriptBlockTopic.asp http://msdn.microsoft.com/library/d...mWebUIPageClassRegisterStartupScriptTopic.asp -- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net Devin said: I want to open a new window through code. Can someone provide me with an Click to expand... example or point me to one in the VB.Net language. Thanks
K Kevin Apr 23, 2004 #3 What actual code can I put in the Button_Click event to open another form in my project? (ASP.NET using VB.NET)
What actual code can I put in the Button_Click event to open another form in my project? (ASP.NET using VB.NET)
S Steve C. Orr [MVP, MCSD] Apr 28, 2004 #5 I gave you all the pieces you need but I'm sorry I don't have time to put them together for you. I hope you can deal with a C# example: http://www.codeguru.com/Csharp/.NET/net_asp/scripting/article.php/c5337/
I gave you all the pieces you need but I'm sorry I don't have time to put them together for you. I hope you can deal with a C# example: http://www.codeguru.com/Csharp/.NET/net_asp/scripting/article.php/c5337/