Hyperlink Problem

G

Guest

Dear All,

I am actually trying to open a new window from my Hyperlink control. Below
is the code:

Hyperlink .NavigateUrl =
"javascript:window.open('SecondaryCauses.aspx','window','height=550,width=750,status=yes,toolbar=no,menubar=no,location=no')"

I am opening this new window from a Web Page called "Primary Causes.aspx". The
new window 'SecondaryCauses.aspx' opens perfectly. But the problem is that as
soon as the new window 'SecondaryCauses.aspx' open, something strange
happens to the parent window(Primary Causes.aspx) . The whole text in Primary
Causes.aspx disappears and the only thing I can see is a word "object" in the
upper
left corner of the parent window(Primary Causes.aspx) .

Can some one tell me whats going on.Why can't I see text in Primary
Causes.aspx
Any help much appreciated.

cheers,

Sunil Sabir
 
G

Guest

I wasn't able to reproduce the problem using the code shown below. You might
want to see if return false helps.

Ken
MVP [ASP.NET]

<%@ Page Language="VB" %>
<script runat="server">

sub page_loa
LinkButton1.attributes.add("onclick","window.open('SecondaryCauses.aspx','window','height=550,width=750,status=yes,toolbar=no,menubar=no,location=no');return false;")
end sub

</script>
<html>
<head>
</head>
<body>
<form runat="server">
<asp:LinkButton id="LinkButton1" runat="server"
navigateurl="#" >
LinkButton</asp:LinkButton>
<!-- Insert content here -->
</form>
</body>
</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top