Welcome to Professional ASP.NET - Chris Love's Official Blog Sign in | Join | Help

Chris Love's Official ASP.NET Blog

Chris Love's Helpful tips, tricks and pragmatic development knowledge for the ASP.NET world.
Add to Technorati Favorites


ASP Insider Follow Me On Twitter
Image Control and Alt Tags

ASP.NET 2.0 is making a big push to be more standards compliant.  Just look in Visual Studio 2005 and you will see how to set the default compliancy to 3.02, 4.0, XHTML 4.01, etc.  You can also set how your compliance will generate errors while you are working.  I am still not a huge fan of worrying about all the details because most browsers are pretty cool with depricated markup at this point. 

Anyway, I found a nice little blog entry on Michael Flanakin's blog about the Image control having a new property, GenerateEmptyAlternateText.  If set to true it will add alt="" to your image.  In ASP.NET 1.1 you could just set the AlternateText="", which I really started doing in the last year anyway.

So the moral of the story is this is a nice little property to help along the way.  Plus I know there are many new properties for our old controls, so be on the look out as I will.  I will post my thoughts and discoveries here.

Posted: Sunday, January 08, 2006 12:32 PM

by Chris Love
Filed under: , ,

Comments

Secure IT Structure Services said:

Thanks for sharing very useful information.
# July 24, 2009 1:21 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS