swilson
Posts: 84
|
Posted: 10/12/2005, 4:59 AM |
|
I set the width format property of an ImageLink to 100. It builds the HTML as follows:
<td class=""><a class="" href="{ImageLink1}"><img class="" src="{ImageLink1_Src}" width="100"></a></td>
and the .aspx as:
<td class=""><asp:HyperLink id="HomepageImageLink1" NavigateUrl="" ImageUrl='' CssClass="" Width="100" runat="server"/></td>
Is there a bug in the build resulting in ImageUrl='' instead of ImageURL="" ?
My problem is that the width property is not working when viewing the page in a browser. I also tried setting the width property in the before show event as a work around as follows:
homepageImageLink1.width = Unit.Pixel(100)
This did not work either.
Is there a fix or workaround, or what am I missing?
THANKS.
_________________
It continues to amaze me, how often the solutions to seemingly complex problems are so very simple. |
|
|
swilson
Posts: 84
|
Posted: 10/18/2005, 6:00 AM |
|
This answer from support solved my problem:
The issue related to "width" attribute is ASP.NET issue. It fact this attribute does not set width for a hyperlink. As a workaround please use standard Link control and in its Before Show event assign <img> HTML code to Link’s Value property.
_________________
It continues to amaze me, how often the solutions to seemingly complex problems are so very simple. |
|
|
|