Monday, March 26, 2012

OpeningNew Window From ASP.NET Button Click

I want to open a new window on Button Click. At run time i will be able to know the url. I tried this using window.open but it is not able to find the Variable While the varibale is declared public in class.

I wrote window.open in .aspx and while the variable is in .vb file. But i this it should identify this becoz aspx is iherited from class that is declared in .vb.

Pls Help Its Urgent

Its Done

Response.Write("<script language=""javascript""> var win=window.open('" & sHomeURL & "');win.focus;</script>")

Big Smile [:D]


Have a look at:

Enhancing ASP.NET Pages with JavaScript

ASP.NET Popup Control
Regards

0 comments:

Post a Comment