I have a button on my form, and on its click event, I would like to
open a new window of my browser with a specific link.
I have been searching on the net, but can't find the appropriate code.
I hope someone understands my problem, and helps me out.
Thanks in Advance.In your Button's Click event, do something like this:
Page.RegisterStartupScript("redirect", "window.open(...)")
When the page loads, the startup script will run to launch the new window.
I forget the params to window.open to launch a new browser. Here are the
docs for it though:
-Brock
DevelopMentor
http://staff.develop.com/ballen
> Hi,
> I have a button on my form, and on its click event, I would like to
> open a new window of my browser with a specific link.
> I have been searching on the net, but can't find the appropriate code.
> I hope someone understands my problem, and helps me out. Thanks in
> Advance.
Misfire there. Here are the docs on window.open:
http://www.mozilla.org/docs/dom/dom...ndow_ref76.html
-Brock
DevelopMentor
http://staff.develop.com/ballen
> In your Button's Click event, do something like this:
> Page.RegisterStartupScript("redirect", "window.open(...)")
> When the page loads, the startup script will run to launch the new
> window. I forget the params to window.open to launch a new browser.
> Here are the docs for it though:
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>> Hi,
>> I have a button on my form, and on its click event, I would like to
>> open a new window of my browser with a specific link.
>> I have been searching on the net, but can't find the appropriate
>> code.
>> I hope someone understands my problem, and helps me out. Thanks in
>> Advance.
>
0 comments:
Post a Comment