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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

new window

Status
Not open for further replies.

ikkedm

Programmer
Apr 15, 2003
8
0
0
BE
hello,

i have a little problem

i'm workin in vb.net and asp.net

now, when i push a button a new window have to appears
is here someone who can help, someone who can tell me how i have to do it?

thanks
Michaël
 
The way that I like to do this is to use a hyperlink

specify the target as blank

set the background and the border and borderstyle
<asp:HyperLink id=&quot;HyperLink1&quot; style=&quot;Z-INDEX: 102; LEFT: 189px; POSITION: absolute; TOP: 235px&quot; runat=&quot;server&quot; Width=&quot;101px&quot; BackColor=&quot;Silver&quot; BorderStyle=&quot;Outset&quot; BorderColor=&quot;Gray&quot; Height=&quot;26px&quot; Target=&quot;_blank&quot;>HyperLink</asp:HyperLink>

Then in the clicked event

Response.Redirect(&quot;Whatever.aspx&quot;);

Hope this helps
 
i know it is possible with a hyperlink.

But i really have to do it with a button.
It's part of my project.

the button is an <asp:button>
and in vb:
private sub buttonID_click(...) handles button_click
???
end sub

i want to open a window in this sub, but i have now idea how.

thx
Michaël
 
No one will know it's a hyperlink.. but you can also do this...


Response.Write(&quot;<SCRIPT Language=javascript>window.open('whatever.aspx');</SCRIPT>&quot;);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top