DevinYou 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...lock Topic.asp
http://msdn.microsoft.com/library/d...riptTopi c.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Devin" <anonymous@.discussions.microsoft.com> wrote in message
news:953DBA34-3A49-49B4-89DC-F59735BE75B3@.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
> Devin
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:
>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...lock Topic.asp
>http://msdn.microsoft.com/library/d...riptTopi c.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:
>>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...lock Topic.asp
>>http://msdn.microsoft.com/library/d...riptTopi c.asp
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:
> >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:
> >>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/...ethods/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/d...en-us/cpref/htm
l/frlrfSystemWebUIPageClassRegisterClientScriptBlock Topic.asp
>>http://msdn.microsoft.com/library/d...en-us/cpref/htm
l/frlrfSystemWebUIPageClassRegisterStartupScriptTopi c.asp
0 comments:
Post a Comment