Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 3rd, 2006, 08:01 AM
Registered User
 
Join Date: Jul 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default <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

 
Old July 5th, 2006, 02:53 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old April 23rd, 2014, 04:51 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Last edited by Dave R; April 23rd, 2014 at 04:57 AM.. Reason: addition




Similar Threads
Thread Thread Starter Forum Replies Last Post
.Net2 xslt does not like the &lt; "<" - &gt; ">" ismailc XSLT 4 October 11th, 2008 04:40 AM
set image on <asp:Image> stored in DataBase myself.panku ASP.NET 2.0 Professional 1 August 11th, 2008 10:41 AM
Ch 8: <asp:image> inside <a> & ext.CSS (pg. 274) epc BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 July 12th, 2008 04:37 AM
a problem in book<<beginning asp.net using vb>> luoware ASP.NET 1.0 and 1.1 Basics 3 December 8th, 2003 09:32 PM
<<ASP.NET Security>>,download files in chapter 8 alaix All Other Wrox Books 1 July 24th, 2003 10:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.