p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 (http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0-264/)
-   -   <asp:Image /> & hspace (http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0/44764-asp-image-hspace.html)

Poltroon July 3rd, 2006 09:01 AM

<asp:Image /> & hspace
 
In chapter 2 page 31 in the master page code there is an asp:Image element containing a hspace attribute. VS2005 is telling me that this is a validation failure as hspace isn't an attribute of asp:Image.

I can't find this bit of code in the downloaded solution, so it may be removed later in the book.

Can anyone confirm that this code is wrong, or explain it to this novice.

Cheers


englere July 5th, 2006 03:53 PM

hspace is an older attibute not supported in XHTML:

http://www.w3schools.com/tags/tag_img.asp

I also see this in WelcomeBox.aspx, for imgGlass. It would be wise to factor that out. But most of us will use our own custom WelcomeBox, anyway.

By the way, anytime the code download doesn't agree with the book, you should understand that the code download is newer and it may have fixes or enhancements that don't show up in the text. It's easy to update a zip file, but harder to update a physical book :-)

Eric

Dave R April 23rd, 2014 05:51 AM

hspace is an attribute for HTML img element. It is present in the book and also in the downloadable code. My best guess is the book's author intended to have the ASP image control get this attribute when it renders as HTML img at run time.


All times are GMT -4. The time now is 07:07 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.