Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open page in target from ImageButton1_Click

Status
Not open for further replies.

jimlenihan

Technical User
Nov 24, 2003
4
IE
Hi,
I have the below code that opens a new window when a user clicks on an ImageButton ... what I'm looking for is the the webpage to open in a target called "main" ... any help is appreciated.

Private Sub ImageButton1_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click

Label1.Text = &quot;<SCRIPT language=&quot; + Chr(34) + &quot;javascript&quot; + Chr(34) + &quot;>window.open(&quot; + Chr(34) + &quot; + Chr(34) + &quot;)</SCRIPT>&quot;

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top