Scott M. has definately provided the more correct solution. You might also try,
<a href="" onclick="window.open('ShowImage.aspx');return false;">Image</a>
This will ensure that the href action does not bubble through the page's
client side event cycle and will also not change the page URL by appending a
pound sign. You do not need a value in the href property, the browser will
render an empty href value as a link (if you exclude the href property all
together you will simply get text, not a hyperlink).
--
Chad Scharf
_______________________________
http://www.chadscharf.com
"Scott M." wrote:
<a href="#" onclick="window.open('ShowImage.aspx');">Image</a>
"John" <Jo**@discussions.microsoft.comwrote in message
news:02**********************************@microsof t.com...
Hi,
I have the following in my asp .net web page. It opens a separate browser
window. However, on the main page, all of the contents is gone and shows
nothing but [object]. I have to use the Back button to get the main page
back.
How can I open a separate browser window and keep all the contents on the
main page? Thanks.
<a href="javascript:window.open('ShowImage.aspx');">I mage</a>