473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Hyperlink Problem

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','wi ndow','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

Nov 18 '05 #1
1 1416
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>
"Sunil Sabir" wrote:
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','wi ndow','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

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tero Partanen | last post by:
Hello! I'm writing about a rather peculiar problem I'm having with Access2000. I have a table in which I have created one hyperlink-type field. I have given the field a default value which is...
4
by: Marco Krechting | last post by:
Hi All, Sorry but I have to create new message since it cannot find the old message to send a reply. Coming back to this hyperlink thing I will try to explain the real problem cause I think we...
1
by: Badboy36 | last post by:
Hello user from googlegroups, i made a microsoft access database with front and backend. i created the backend in microsoft access97. for the frontend i made two versions (one for microsoft...
9
by: Leigh Kendall | last post by:
I can't find any issue in the MS KB, but I'm experiencing the following problem which seems to be specific to IE5, and NOT any other version of IE 5.5+ or NN 6+. Issue: I'm using an asp.net...
5
by: JerryK | last post by:
Hi, I am trying to put a hyperlink to a .cer (certificate) file on a form. Normally (on a ,htm page) when the user clicks on the hyperlink, the file is not recognized and the user is given the...
10
by: hecsan07 | last post by:
I am a novice programmer. I want to have a hyperlink that looks like so: www.mycoolsite.com?a=21132. On click I want to extract the query string and use it to query a table within a DB (SQL...
3
by: TPhelps | last post by:
I have a sample of an unbound (autogeneratecolumns is true) sortable/pagable datagrid that works. I want to change one of the columns to a hyperlink. The examples I find use a bound column. I...
20
by: tshad | last post by:
I had posted this problem earlier and just noticed that the Hyperlink is the problem. Apparently, it doesn't figure out the path correctly. It uses the path of the file it is in, even if it is...
5
LAD
by: LAD | last post by:
Using Access 2003 on Windows 2000. My Skill Level: Med Low (Some VBA, okay with Access) Form: Single View - based on Query of single Table to sort by field. Application: Dealers email 'contract...
1
NeoPa
by: NeoPa | last post by:
Error 7980: The HyperlinkAddress or HyperlinkSubAddress property is read-only for this hyperlink I'm struggling with some code to update Hyperlinks in my table. The field is defined as a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.