<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Web Forms</title><link>http://forums.asp.net/18.aspx</link><description>All about building ASP.NET Pages - server controls, events, validation, etc.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: How to set WebForm HyperLink ImageAlign Property</title><link>http://forums.asp.net/thread/3274961.aspx</link><pubDate>Sat, 04 Jul 2009 21:06:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274961</guid><dc:creator>logikonlineinc</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274961.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=3274961</wfw:commentRss><description>&lt;p&gt;Microsoft... Can you please add this to the Hyperlink object. &amp;nbsp;While I can override like the gentlemen above suggests - in existing projects it makes it difficult to replace all instances.&lt;/p&gt;&lt;p&gt;This is a simple addition on your end.&lt;/p&gt;&lt;p&gt;regards,&lt;br /&gt;Dave&lt;/p&gt;</description></item><item><title>Re: How to set WebForm HyperLink ImageAlign Property</title><link>http://forums.asp.net/thread/2620808.aspx</link><pubDate>Mon, 15 Sep 2008 02:06:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2620808</guid><dc:creator>Mar7in</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2620808.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=2620808</wfw:commentRss><description>&lt;p&gt;This is a rather old post which went unanswered. I ran into similar situation and I ended up override RenderContents:&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;protected override void&lt;/span&gt; RenderContents(System.Web.UI.HtmlTextWriter writer)
{
    &lt;span class="kwd"&gt;string&lt;/span&gt; imageUrl = &lt;span class="kwd"&gt;this&lt;/span&gt;.ImageUrl;
    &lt;span class="kwd"&gt;if&lt;/span&gt; (imageUrl.Length &amp;gt; 0)
    {
        Image image = &lt;span class="kwd"&gt;new&lt;/span&gt; Image();
        image.ImageUrl = &lt;span class="kwd"&gt;base&lt;/span&gt;.ResolveClientUrl(imageUrl);
        &lt;strong&gt;image.ImageAlign = ImageAlign.AbsMiddle;&lt;/strong&gt;
        imageUrl = &lt;span class="kwd"&gt;this&lt;/span&gt;.ToolTip;
        &lt;span class="kwd"&gt;if&lt;/span&gt; (imageUrl.Length != 0)
        {
            image.ToolTip = imageUrl;
        }
        imageUrl = &lt;span class="kwd"&gt;this&lt;/span&gt;.Text;
        &lt;span class="kwd"&gt;if&lt;/span&gt; (imageUrl.Length != 0)
        {
            image.AlternateText = imageUrl;
        }
        image.RenderControl(writer);
    }
    &lt;span class="kwd"&gt;else&lt;/span&gt;
    {
        writer.Write(&lt;span class="kwd"&gt;this&lt;/span&gt;.Text);
    }
}&lt;/pre&gt;&amp;nbsp;</description></item><item><title>How to set WebForm HyperLink ImageAlign Property</title><link>http://forums.asp.net/thread/1033975.aspx</link><pubDate>Sat, 27 Aug 2005 01:55:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1033975</guid><dc:creator>xenoak47</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1033975.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=1033975</wfw:commentRss><description>I use Hyperlink images a lot on my site, and was wondering if there is
a way I set the ImageAlign property for the image? I know that you can
do it with a normal Image control, but there is no such property
exposed with the Hyperlink control. Any items added to the Attributes
collection end up as attributes of the hyperlink and not the image.&lt;br&gt;
&lt;br&gt;
Any ideas would be much appreciated.&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Allen K.&lt;br&gt;
&lt;br&gt;</description></item></channel></rss>