Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 27th, 2011, 11:33 AM
Authorized User
 
Join Date: Jul 2011
Posts: 13
Thanks: 7
Thanked 0 Times in 0 Posts
Default Chapter 14 page 508 step 10 possible error

Hi,

First of all Thank you Imar for having written such a magnific book. Big thanks to you.
I am using Internet explorer 8. Nobody has mentioned about the possible error at page 508 chapter 14.
I have tried but the following code didn`t work; the images were not showing up on the page every other thing was ok.
The code in the book is
<asp:Image ID="ImageUrl" runat="server" Text='<%# Eval("ImageUrl") %>' />

So I changed the code as following and it worked. I don`t know if it is an issue with internet explorer 8
and it should be
<asp:Image ID="ImageUrl" runat="server" ImageUrl='<%# Eval("ImageUrl") %>' />

I used as master page management.master . I am not sure if the problem is connected with it or internet explorer 8 or something else, but I think this can help other coders.

Thank you
 
Old July 27th, 2011, 11:40 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

I am not sure what you mean. Page 508 shows a *label*, not an image, like this:

Code:
 
<asp:Label ID=”ImageUrlLabel” runat=”server” Text=’<%# Eval(“ImageUrl”) %>’ /><br />
A Label has a Text property which, in this case, simly displays the path to the image.

On page 515, the label is then changed to an image to show the actual image:

Code:
 
<asp:Image ID=”ImageUrl” runat=”server” ImageUrl=’<%# Eval(“ImageUrl”) %>’ />
Where exactly did you see the code you posted here?

P.S. Since this is a server side issue, the browser you're using doesn't matter. asp:Label or asp:Image never makes it to the browser. Instead, these controls are turned into their respective HTML (a span and an img tag) which is then sent to the browser.

Hope this helps,


Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
oruckenan (July 27th, 2011)
 
Old July 27th, 2011, 11:51 AM
Authorized User
 
Join Date: Jul 2011
Posts: 13
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Hi Imar,

Wow such a speed!
It is my mistake, you are right.
I spent all my day to find out this mistake. I should asked you earlier but I don`t know if it is possible to use this forum when we are stacked with our mistakes and cannot find any documentation for it? or because our lack of attention needing help to see the little mistake is it possible to use the forum?

Thank you for the kind reply all my best wishes.
Oruc Yildirim
 
Old July 27th, 2011, 12:10 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
I should asked you earlier but I don`t know if it is possible to use this forum when we are stacked with our mistakes and cannot find any documentation for it?
I'd say it's possible. Obviously, you learn more by figuring it out yourself, but if you're stuck, feel free to use this forum....

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
oruckenan (July 27th, 2011)





Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter 14 Try It Out pg 505 step #4 arodrigu12 BOOK: Beginning ASP.NET 4 : in C# and VB 3 April 21st, 2011 02:28 PM
Ch14 Page 500 Step 10 ken evans BOOK: Beginning ASP.NET 4 : in C# and VB 1 October 26th, 2010 02:54 PM
Chapter 13 Page 470 Step 14 bagellady BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 8 September 17th, 2010 12:36 PM
page 167 Issue with Step 10. iPhoneNoob BOOK: Beginning iPhone SDK Programming with Objective-C 1 July 26th, 2010 11:49 AM
page 656 step 10 results in HTTP 403 error message Dan Cern BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 September 2nd, 2009 03:40 PM





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