Hyperlink w/ImageUrl bug?

L

Leigh Kendall

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 hyperlink control and setting the imageurl property. It seems that when the img tag is rendered in the hyperlink (<a>) tag, the img tag is closed with a /> instead of the usual > tag. Because of this, when the hyperlink is clicked in IE5, the hyperlink doesn't respond.

Anyone else experience this? Any solution besides telling users they must upgrade?

TIA,
 
Y

Yan-Hong Huang[MSFT]

Hello Leigh,

I just did a quick test on IE 5.0 and 6.0. The IE 5.0 version is 5.00.3502.1000.

Firstly, the code rendered is:

<FORM id="aaa">
<a id="HyperLink1" style="height:115px;width:83px;Z-INDEX: 103; LEFT: 147px; POSITION:
absolute; TOP: 191px"><img src="people.jpg" alt="TestHyperLinkControl" border="0" /></a></FORM>

The image could be shown correctly both in IE 6.0 and 5.0. I couldn't reproduce the problem.

Could you please paste your rendered code here? Thanks.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!From: "Leigh Kendall" <[email protected]>
!Subject: Hyperlink w/ImageUrl bug?
!Date: Tue, 29 Jul 2003 14:09:06 -0400
!Lines: 65
!MIME-Version: 1.0
!Content-Type: multipart/alternative;
! boundary="----=_NextPart_000_000A_01C355DA.F8BF8B80"
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
!Message-ID: <[email protected]>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!NNTP-Posting-Host: 159.247.3.210
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:163069
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!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 hyperlink control and setting the imageurl property. It seems that when the img tag is rendered in the
hyperlink (<a>) tag, the img tag is closed with a /> instead of the usual > tag. Because of this, when the hyperlink is clicked in
IE5, the hyperlink doesn't respond.
!Anyone else experience this? Any solution besides telling users they must upgrade?
!TIA,
!--
!Leigh Kendall, MCSD, MCDBA
!
 
Y

Yan-Hong Huang[MSFT]

Hello Leigh,

I will test it and let you know the result as soon as possible. Thanks very much.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!From: "Leigh Kendall" <[email protected]>
!References: <[email protected]> <[email protected]>
!Subject: Re: Hyperlink w/ImageUrl bug?
!Date: Thu, 31 Jul 2003 11:24:45 -0400
!Lines: 79
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
!Message-ID: <[email protected]>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!NNTP-Posting-Host: 159.247.3.210
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:163801
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!I could get the image to render correctly.
!
!The problem I'm experiencing on IE5 is that the hyperlink WITH an image
!(ImageUrl property set) doesn't do anything when you click on it. It seems
!that this issue is isolated to IE5 as I cannot recreate it on other versions
!of IE. Netscape 6.x doesn't have an issue with it either.
!
!The only way I could get the link to respond is by right-clicking it and
!selecting Open.
!
!Leigh
!
!
!!> Hello Leigh,
!>
!> I just did a quick test on IE 5.0 and 6.0. The IE 5.0 version is
!5.00.3502.1000.
!>
!> Firstly, the code rendered is:
!>
!> <FORM id="aaa">
!> <a id="HyperLink1" style="height:115px;width:83px;Z-INDEX: 103; LEFT:
!147px; POSITION:
!> absolute; TOP: 191px"><img src="people.jpg" alt="TestHyperLinkControl"
!border="0" /></a></FORM>
!>
!> The image could be shown correctly both in IE 6.0 and 5.0. I couldn't
!reproduce the problem.
!>
!> Could you please paste your rendered code here? Thanks.
!>
!> Best regards,
!> Yanhong Huang
!> Microsoft Online Partner Support
!>
!> Get Secure! - www.microsoft.com/security
!> This posting is provided "AS IS" with no warranties, and confers no
!rights.
!>
!> --------------------
!> !From: "Leigh Kendall" <[email protected]>
!> !Subject: Hyperlink w/ImageUrl bug?
!> !Date: Tue, 29 Jul 2003 14:09:06 -0400
!> !Lines: 65
!> !MIME-Version: 1.0
!> !Content-Type: multipart/alternative;
!> ! boundary="----=_NextPart_000_000A_01C355DA.F8BF8B80"
!> !X-Priority: 3
!> !X-MSMail-Priority: Normal
!> !X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
!> !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
!> !Message-ID: <[email protected]>
!> !Newsgroups: microsoft.public.dotnet.framework.aspnet
!> !NNTP-Posting-Host: 159.247.3.210
!> !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
!> !Xref: cpmsftngxa06.phx.gbl
!microsoft.public.dotnet.framework.aspnet:163069
!> !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!> !
!> !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 hyperlink control and setting the imageurl property.
!It seems that when the img tag is rendered in the
!> hyperlink (<a>) tag, the img tag is closed with a /> instead of the usual
!> tag. Because of this, when the hyperlink is clicked in
!> IE5, the hyperlink doesn't respond.
!> !Anyone else experience this? Any solution besides telling users they must
!upgrade?
!> !TIA,
!> !--
!> !Leigh Kendall, MCSD, MCDBA
!> !
!>
!>
!
!
 
Y

Yan-Hong Huang[MSFT]

Hello Leigh,

I just tested it on IE 5.

The problem that I observed is that:
When I clicked the image, nothing happens. But when I move the mouse to the right of the image, I could access the link now.

It seems that the link is independant of the image now. Please let me know if it is what you got. If confirmed, I will contact our
product group to dig into it. Thanks very much.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!From: "Leigh Kendall" <[email protected]>
!References: <[email protected]> <[email protected]>
!Subject: Re: Hyperlink w/ImageUrl bug?
!Date: Thu, 31 Jul 2003 11:24:45 -0400
!Lines: 79
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
!Message-ID: <[email protected]>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!NNTP-Posting-Host: 159.247.3.210
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:163801
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!I could get the image to render correctly.
!
!The problem I'm experiencing on IE5 is that the hyperlink WITH an image
!(ImageUrl property set) doesn't do anything when you click on it. It seems
!that this issue is isolated to IE5 as I cannot recreate it on other versions
!of IE. Netscape 6.x doesn't have an issue with it either.
!
!The only way I could get the link to respond is by right-clicking it and
!selecting Open.
!
!Leigh
!
!
!!> Hello Leigh,
!>
!> I just did a quick test on IE 5.0 and 6.0. The IE 5.0 version is
!5.00.3502.1000.
!>
!> Firstly, the code rendered is:
!>
!> <FORM id="aaa">
!> <a id="HyperLink1" style="height:115px;width:83px;Z-INDEX: 103; LEFT:
!147px; POSITION:
!> absolute; TOP: 191px"><img src="people.jpg" alt="TestHyperLinkControl"
!border="0" /></a></FORM>
!>
!> The image could be shown correctly both in IE 6.0 and 5.0. I couldn't
!reproduce the problem.
!>
!> Could you please paste your rendered code here? Thanks.
!>
!> Best regards,
!> Yanhong Huang
!> Microsoft Online Partner Support
!>
!> Get Secure! - www.microsoft.com/security
!> This posting is provided "AS IS" with no warranties, and confers no
!rights.
!>
!> --------------------
!> !From: "Leigh Kendall" <[email protected]>
!> !Subject: Hyperlink w/ImageUrl bug?
!> !Date: Tue, 29 Jul 2003 14:09:06 -0400
!> !Lines: 65
!> !MIME-Version: 1.0
!> !Content-Type: multipart/alternative;
!> ! boundary="----=_NextPart_000_000A_01C355DA.F8BF8B80"
!> !X-Priority: 3
!> !X-MSMail-Priority: Normal
!> !X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
!> !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
!> !Message-ID: <[email protected]>
!> !Newsgroups: microsoft.public.dotnet.framework.aspnet
!> !NNTP-Posting-Host: 159.247.3.210
!> !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
!> !Xref: cpmsftngxa06.phx.gbl
!microsoft.public.dotnet.framework.aspnet:163069
!> !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!> !
!> !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 hyperlink control and setting the imageurl property.
!It seems that when the img tag is rendered in the
!> hyperlink (<a>) tag, the img tag is closed with a /> instead of the usual
!> tag. Because of this, when the hyperlink is clicked in
!> IE5, the hyperlink doesn't respond.
!> !Anyone else experience this? Any solution besides telling users they must
!upgrade?
!> !TIA,
!> !--
!> !Leigh Kendall, MCSD, MCDBA
!> !
!>
!>
!
!
 
L

Leigh Kendall

Yes, this is the same problem we have run into. I'm relieved that you were
able to recreate it.

Hopefully, there is a quick workaround? Thanks!

Leigh

Yan-Hong Huang said:
Hello Leigh,

I just tested it on IE 5.

The problem that I observed is that:
When I clicked the image, nothing happens. But when I move the mouse to
the right of the image, I could access the link now.
It seems that the link is independant of the image now. Please let me know
if it is what you got. If confirmed, I will contact our
 
Y

Yan-Hong Huang[MSFT]

Hello Leigh,

Thanks for the quick response. Now I am working with product team on this issue. This may need some time. Please rest
assure that we will do our best on it and reply you as soon as possible here.


Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!From: "Leigh Kendall" <[email protected]>
!References: <[email protected]> <[email protected]>
<[email protected]> <[email protected]>
!Subject: Re: Hyperlink w/ImageUrl bug?
!Date: Mon, 4 Aug 2003 17:20:36 -0400
!Lines: 141
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
!Message-ID: <[email protected]>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!NNTP-Posting-Host: 103.126.252.64.snet.net 64.252.126.103
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:164774
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!Yes, this is the same problem we have run into. I'm relieved that you were
!able to recreate it.
!
!Hopefully, there is a quick workaround? Thanks!
!
!Leigh
!
!!> Hello Leigh,
!>
!> I just tested it on IE 5.
!>
!> The problem that I observed is that:
!> When I clicked the image, nothing happens. But when I move the mouse to
!the right of the image, I could access the link now.
!>
!> It seems that the link is independant of the image now. Please let me know
!if it is what you got. If confirmed, I will contact our
!> product group to dig into it. Thanks very much.
!>
!> Best regards,
!> Yanhong Huang
!> Microsoft Online Partner Support
!>
!> Get Secure! - www.microsoft.com/security
!> This posting is provided "AS IS" with no warranties, and confers no
!rights.
!>
!> --------------------
!> !From: "Leigh Kendall" <[email protected]>
!> !References: <[email protected]>
!<[email protected]>
!> !Subject: Re: Hyperlink w/ImageUrl bug?
!> !Date: Thu, 31 Jul 2003 11:24:45 -0400
!> !Lines: 79
!> !MIME-Version: 1.0
!> !Content-Type: text/plain;
!> ! charset="iso-8859-1"
!> !Content-Transfer-Encoding: 7bit
!> !X-Priority: 3
!> !X-MSMail-Priority: Normal
!> !X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
!> !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
!> !Message-ID: <[email protected]>
!> !Newsgroups: microsoft.public.dotnet.framework.aspnet
!> !NNTP-Posting-Host: 159.247.3.210
!> !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
!> !Xref: cpmsftngxa06.phx.gbl
!microsoft.public.dotnet.framework.aspnet:163801
!> !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!> !
!> !I could get the image to render correctly.
!> !
!> !The problem I'm experiencing on IE5 is that the hyperlink WITH an image
!> !(ImageUrl property set) doesn't do anything when you click on it. It
!seems
!> !that this issue is isolated to IE5 as I cannot recreate it on other
!versions
!> !of IE. Netscape 6.x doesn't have an issue with it either.
!> !
!> !The only way I could get the link to respond is by right-clicking it and
!> !selecting Open.
!> !
!> !Leigh
!> !
!> !
!> !!> !> Hello Leigh,
!> !>
!> !> I just did a quick test on IE 5.0 and 6.0. The IE 5.0 version is
!> !5.00.3502.1000.
!> !>
!> !> Firstly, the code rendered is:
!> !>
!> !> <FORM id="aaa">
!> !> <a id="HyperLink1" style="height:115px;width:83px;Z-INDEX: 103; LEFT:
!> !147px; POSITION:
!> !> absolute; TOP: 191px"><img src="people.jpg" alt="TestHyperLinkControl"
!> !border="0" /></a></FORM>
!> !>
!> !> The image could be shown correctly both in IE 6.0 and 5.0. I couldn't
!> !reproduce the problem.
!> !>
!> !> Could you please paste your rendered code here? Thanks.
!> !>
!> !> Best regards,
!> !> Yanhong Huang
!> !> Microsoft Online Partner Support
!> !>
!> !> Get Secure! - www.microsoft.com/security
!> !> This posting is provided "AS IS" with no warranties, and confers no
!> !rights.
!> !>
!> !> --------------------
!> !> !From: "Leigh Kendall" <[email protected]>
!> !> !Subject: Hyperlink w/ImageUrl bug?
!> !> !Date: Tue, 29 Jul 2003 14:09:06 -0400
!> !> !Lines: 65
!> !> !MIME-Version: 1.0
!> !> !Content-Type: multipart/alternative;
!> !> ! boundary="----=_NextPart_000_000A_01C355DA.F8BF8B80"
!> !> !X-Priority: 3
!> !> !X-MSMail-Priority: Normal
!> !> !X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
!> !> !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
!> !> !Message-ID: <[email protected]>
!> !> !Newsgroups: microsoft.public.dotnet.framework.aspnet
!> !> !NNTP-Posting-Host: 159.247.3.210
!> !> !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
!> !> !Xref: cpmsftngxa06.phx.gbl
!> !microsoft.public.dotnet.framework.aspnet:163069
!> !> !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!> !> !
!> !> !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 hyperlink control and setting the imageurl
!property.
!> !It seems that when the img tag is rendered in the
!> !> hyperlink (<a>) tag, the img tag is closed with a /> instead of the
!usual
!> !> tag. Because of this, when the hyperlink is clicked in
!> !> IE5, the hyperlink doesn't respond.
!> !> !Anyone else experience this? Any solution besides telling users they
!must
!> !upgrade?
!> !> !TIA,
!> !> !--
!> !> !Leigh Kendall, MCSD, MCDBA
!> !> !
!> !>
!> !>
!> !
!> !
!>
!>
!
!
 
M

Mike Moore [MSFT]

Hi Leigh,

I apologize for the long delay in responding to you. Yan-Hong escalated
this issue and then it got forgotten. I sincerely apologize for this error.

If you are still monitoring this thread, please repost and I will closely
supervise a new escalation of this issue. I again apologize for this error.

Thank you, Mike Moore
Microsoft, ASP.NET

This posting is provided "AS IS", with no warranties, and confers no rights.


--------------------
From: "Leigh Kendall" <[email protected]>
References: <[email protected]>
<[email protected]>
 
L

Leigh Kendall

Yes, I'm still monitoring this thread.

Thanks for the update...

--
Leigh Kendall, MCSD, MCDBA

"Mike Moore [MSFT]" said:
Hi Leigh,

I apologize for the long delay in responding to you. Yan-Hong escalated
this issue and then it got forgotten. I sincerely apologize for this error.

If you are still monitoring this thread, please repost and I will closely
supervise a new escalation of this issue. I again apologize for this error.

Thank you, Mike Moore
Microsoft, ASP.NET

This posting is provided "AS IS", with no warranties, and confers no rights.<[email protected]>
Subject: Re: Hyperlink w/ImageUrl bug?
Date: Mon, 4 Aug 2003 17:20:36 -0400
Lines: 141
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <[email protected]>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: 103.126.252.64.snet.net 64.252.126.103
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:164774
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Yes, this is the same problem we have run into. I'm relieved that you were
able to recreate it.

Hopefully, there is a quick workaround? Thanks!

Leigh

to
the right of the image, I could access the link now. know
if it is what you got. If confirmed, I will contact our
they
must
 
J

John Soulis [MSFT]

Please add the custom attribute:

onclick="javascript:document.URL = this.href;"

to the Hyperlink Control. This should work around the issue.
Please let me know if you have any questions.

Thank you, John Soulis
Microsoft, ASP.NET

This posting is provided "AS IS", with no warranties, and confers no rights.
 

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
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top