Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Opening New Window through code

Reply
Thread Tools

Opening New Window through code

 
 
=?Utf-8?B?RGV2aW4=?=
Guest
Posts: n/a
 
      04-22-2004
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
 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      04-22-2004
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/a...ods/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/de...BlockTopic.asp
http://msdn.microsoft.com/library/de...criptTopic.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


"Devin" <> wrote in message
news:953DBA34-3A49-49B4-89DC-...
> 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
>
> Devin



 
Reply With Quote
 
 
 
 
Kevin
Guest
Posts: n/a
 
      04-23-2004
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]"
<> 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/a...ods/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/de...BlockTopic.asp
>http://msdn.microsoft.com/library/de...criptTopic.asp


 
Reply With Quote
 
Kevin
Guest
Posts: n/a
 
      04-28-2004
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]"
><> 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/a...ods/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/de...BlockTopic.asp
>>http://msdn.microsoft.com/library/de...criptTopic.asp


 
Reply With Quote
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      04-28-2004
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/...cle.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:...
> 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]"
> ><> 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/a...thods/open_0.a

sp
> >>
> >>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/de...n-us/cpref/htm

l/frlrfSystemWebUIPageClassRegisterClientScriptBlock Topic.asp
>
>>http://msdn.microsoft.com/library/de...n-us/cpref/htm

l/frlrfSystemWebUIPageClassRegisterStartupScriptTopi c.asp
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
opening a new window with HTML code instead of file laredotornado@zipmail.com Javascript 5 08-23-2005 10:08 AM
Opening a new browser window to a specific size without the menu bar and address window. UJ ASP .Net 2 06-27-2005 08:21 PM
opening new window in one window using Tkinter -- Help please Clara Python 6 04-25-2005 03:09 AM
Closing child window when opening a new Window Patrick Olurotimi Ige ASP .Net 2 12-14-2004 04:59 AM
Browswer Window moving when opening a new window Allan Javascript 1 08-05-2004 11:13 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57