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 webpage with vb.net sub

Status
Not open for further replies.

jimlenihan

Technical User
Nov 24, 2003
4
IE
Sorry about this easy question but I would appreciate any help ...

On clicking an ImageButton on a .aspx page I want to open another .aspx page


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

// need code here ???

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

The above works as long if there are no pop-up blockers on the client. Otherwise, I believe you'd have to handle everything with ad hoc links.
 
Thankyou,

thats great......out of curiousity how could I open the page into a frame called &quot;main&quot;

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;


thanks
 
I'm not very good with JavaScript, but I think window.open's second argument can take a frame name window.open(&quot;AddCustomerToDatabase.pl&quot;, &quot;right frame&quot;);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top