Thursday, March 22, 2012

open a new window

Hi,
How can you open an html page in another window once a button clicked in C#.
Thanks,You'll need to add the javascript call as an onclick attribute of your
button in your codebehind:

this.buttonOk.Attributes.Add("onClick", "yourjavascript");

The javascript should somehow look like :

window.open("Page.html");

see:
http://www.javascripter.net/faq/openinga.htm
http://builder.com.com/5100-6371_14-5031730-2.html

0 comments:

Post a Comment