[Mono-dev] [Mono-Dev] Small fix forSystem.Web.UI.HtmlControls.HtmlInputImage.cs

Eyal Alaluf eyala at mainsoft.com
Sun Jan 14 05:49:58 EST 2007


The controls output is an absolute URL when given "http://..." or even
when given "/WebApplication32/..." and a relative URL when given
"../test1".

-----Original Message-----
From: Konstantin Triger 
Sent: 12 January 2007 00:48
To: Eyal Alaluf; mono-devel-list at lists.ximian.com
Subject: RE: [Mono-dev] [Mono-Dev] Small fix
forSystem.Web.UI.HtmlControls.HtmlInputImage.cs

Hi Eyal,

> Also maybe "PreProcessRelativeReference" should use ResolveClientUrl
> rather then ResolveUrl?
Can you give it an absolute URL?

Regards,
Konstantin Triger



-----Original Message-----
From: mono-devel-list-bounces at lists.ximian.com on behalf of Eyal Alaluf
Sent: Thu 11/01/2007 18:47
To: mono-devel-list at lists.ximian.com
Subject: [Mono-dev] [Mono-Dev] Small fix
forSystem.Web.UI.HtmlControls.HtmlInputImage.cs
 
The attached patch uses "PreProcessRelativeReference" on the image "src"
attribute in order to handle relative paths from ASCX user controls.
This is similar to existing code in HtmlImage.cs.
Also maybe "PreProcessRelativeReference" should use ResolveClientUrl
rather then ResolveUrl? HtmlImage and HtmlInputImage generate relative
URLs (at least in 2.0).

Eyal.




More information about the Mono-devel-list mailing list