Wednesday, March 26, 2008

Opening a new window in ASP.NET

The following simple HTML code can be used to open a new windows:

<form id="Form1">
<INPUT Type="button" OnClick="window.open('http://www.google.com')" value="enter">
</form>


If server side control is a must, do the following at the page load:

button1.Attributes.Add("onclick", "window.open('http://www.google.com')");

1 comment:

Unknown said...

Thanks for the simple HTML code for opening a new window.The other one code also help in opening the window.If you have other information then please share it.
digital signature software