Ca4nul @ facebook Ca4nul @ Twitter
Forum announcement: $$ Top Contributors Contest (March 2010) - Win Instant extra Cash $$
Welcome Guest Search | Active Topics | Members | Log In | Register

Unexpected behavior with an ImageButton - it's missing ImageUrl value Options
richard
Posted: Thursday, July 02, 2009 7:47:39 AM
Rank: Advanced Member
Groups: Member

Joined: 6/9/2008
Posts: 149
Points: 447
Location: California, USA
We have had a report of an issue when using an ASP.NET Image / ImageButton control where the developer does not specify an ImageUrl.
This is the case by default when dragging an ImageButton / Image control from the toolbox into your page. e.g.,


Code:
<input type="image" name="ImageButton1" id="ImageButton1" src="" mce_src="" style="border-width:0px;" />


Will cause the following HTML to be rendered when the source for the generated page is viewed in your browser.


Code:
<input type="image" name="ImageButton1" id="ImageButton1" src="" mce_src="" style="border-width:0px;" />


Notice that the 'src' for this element is defined as "", 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.

We will be making ImageUrl a required element for these controls in future releases however, in current versions you should ensure that you always set the ImageUrl property of these controls to avoid an additional call being made for your default document.
Sponsor
Posted: Thursday, July 02, 2009 7:47:39 AM
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

ASPNET Theme created by Boskone (Dan Ferguson)
Powered by Ca4nul.Com
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.514 seconds.