Link to home
Start Free TrialLog in
Avatar of Russ Suter
Russ Suter

asked on

Open a URL in a new Window under .NET Framework 1.1

I need to dynamically create a hyperlink on a web page that opens a URL in a new window. This is using the .NET Framework 1.1 so I can't use the LinkButton with the OnClientClick() property which is how I'd normally do it. How can I dynamically create a link on a page and have that link open a new window? Maybe there's a tidy javascript solution that I'm missing?
ASKER CERTIFIED SOLUTION
Avatar of DotNetThinker
DotNetThinker
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
OnClientClick="somefunction();" in .Net 2.0 is effectively the same as using:

linkbutton.attributes.add("onclick","somefunction();")