Thursday, March 29, 2012

Opening New Window through code

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/...hods/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...>
lockTopic.asp
http://msdn.microsoft.com/library/d...br />
Topic.asp
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Devin" <anonymous@dotnet.itags.org.discussions.microsoft.com> wrote in message
news:953DBA34-3A49-49B4-89DC-F59735BE75B3@dotnet.itags.org.microsoft.com...
> 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. Thanks
> DevinWhat actual code can I put in the Button_Click event to open another
form in my project? (ASP.NET using VB.NET)
On Thu, 22 Apr 2004 15:16:50 -0700, "Steve C. Orr [MVP, MCSD]"
<Steve@.Orr.net> wrote:

>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/...
BlockTopic.asp
>http://msdn.microsoft.com/library/d...ScriptTopic.asp
Doesn't anyone know the answer to this question?
On Fri, 23 Apr 2004 19:30:04 GMT, Kevin <kevinp@.remove_cfl.rr.com>
wrote:
>What actual code can I put in the Button_Click event to open another
>form in my project? (ASP.NET using VB.NET)
>
>On Thu, 22 Apr 2004 15:16:50 -0700, "Steve C. Orr [MVP, MCSD]"
><Steve@.Orr.net> wrote:
>
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...icle.php/c5337/
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Kevin" <kevinp@.remove_cfl.rr.com> wrote in message
news:rtps809ij6vda996ijbirt9g26afns4bpn@.
4ax.com...
> Doesn't anyone know the answer to this question?
>
> On Fri, 23 Apr 2004 19:30:04 GMT, Kevin <kevinp@.remove_cfl.rr.com>
> wrote:
>
window
>
sp
>
l/ frlrfSystemWebUIPageClassRegisterClientS
criptBlockTopic.asp
>
l/ frlrfSystemWebUIPageClassRegisterStartup
ScriptTopic.asp
>

0 comments:

Post a Comment