<?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>Unexpected behavior with an ImageButton / Image control missing it's ImageUrl value</title><link>http://forums.asp.net/thread/2945506.aspx</link><pubDate>Tue, 17 Feb 2009 00:06:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2945506</guid><dc:creator>scottgal</dc:creator><author>scottgal</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2945506.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=2945506</wfw:commentRss><description>&lt;p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:13px -webkit-monospace;WHITE-SPACE:pre-wrap;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0;" class="Apple-style-span"&gt;We have had a report of an issue when using an ASP.NET Image / ImageButton control where the developer does not specify an ImageUrl. &lt;br /&gt;This is the case by default when dragging an ImageButton&amp;nbsp;/ Image control from the toolbox into your page. e.g.,&lt;br /&gt;&lt;/span&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:13px -webkit-monospace;WHITE-SPACE:pre-wrap;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0;" class="Apple-style-span"&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt; &amp;lt;input type=&amp;quot;image&amp;quot; name=&amp;quot;ImageButton1&amp;quot; id=&amp;quot;ImageButton1&amp;quot; src=&amp;quot;&amp;quot; mce_src=&amp;quot;&amp;quot; style=&amp;quot;border-width:0px;&amp;quot; /&amp;gt; &lt;/pre&gt;&amp;nbsp;&lt;/span&gt;Will cause the following HTML to be rendered when the source for the generated&amp;nbsp;page is viewed in your browser.&lt;br /&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;&amp;lt;input type=&amp;quot;image&amp;quot; name=&amp;quot;ImageButton1&amp;quot; id=&amp;quot;ImageButton1&amp;quot; src=&amp;quot;&amp;quot; mce_src=&amp;quot;&amp;quot; style=&amp;quot;border-width:0px;&amp;quot; /&amp;gt;&lt;/pre&gt;&amp;nbsp;Notice that the &amp;#39;src&amp;#39; for this element is defined as &amp;quot;&amp;quot;, this wil actually cause a GET request back to the server, which the server will respond to by returning the default document for this particular site. &lt;br /&gt;&lt;br /&gt;We will be making ImageUrl a required element for these controls in future releases however, in current versions you should ensure that you &lt;strong&gt;always set the ImageUrl property of these controls &lt;/strong&gt;to avoid an additional call being made for your default document.</description></item></channel></rss>