You should use an html image link instead of an asp.net
control if you are just redirecting to a new page. It is
less weight. Opening a new browser is done on the client-
side so the only way you could get an asp.net control to
open a new page is to dynamically write javascript to the
page to open a new window when the button was clicked. (I
think)
Anyways here is some javascript code and how you would
call it in a page to open an new window.
Javascript code:
<!-- Begin
function NewWindow(mypag e, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height -
h) /2;winprops='hei ght='+h+',width ='+w+',top='+wi nt+',left
='+winl+',scrol lbars='+scroll+ ',resizable'
win = window.open(myp age, myname, winprops)
// <li><a
href="../Conferences/2002_National_C onference/index1.asp">2
002 CSEPP National Conference</a> June 26-27, 2002, in
Lexington, Kentucky
if (parseInt(navig ator.appVersion ) >= 4) { win.window.focu s
(); }
}
// End -->
HTML IMAGE LINK TO PUT IN YOUR PAGE(can be in .net html
page)
NOTE: The window name parameter cannot contain spaces.
<A onmouseover="do cument['ImgUsage'].src
='MouseOverImag e.gif" onmouseout="doc ument
['ImgUsage'].src='NormalIma ge.gif'" onclick="NewWin dow
(this.href,'Win dowName','740', '530','yes');re turn false;"
href="usage_pol icy.asp" >
Hope this helps
-----Original Message-----
This should be really simple ... but how to do it has
beeneluding me ...
I am writing an ASP.NET application and am using
ASP.ImageButto ns & ASP.Buttons. Instead of redirecting
toanother page (ie. Response.Redire ct("xxx.htm")) I want to
open the page in another window. Sounds pretty basic,
but .....
If you can help, I'd sure appreciate it.
Thanks,
Wes
.