Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 27th, 2011, 11:33 AM
Authorized User
Points: 52, Level: 1
Points: 52, Level: 1 Points: 52, Level: 1 Points: 52, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2011
Location: Ankara Turkey
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
Reply With Quote
  #2 (permalink)  
Old July 27th, 2011, 11:40 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
oruckenan (July 27th, 2011)
  #3 (permalink)  
Old July 27th, 2011, 11:51 AM
Authorized User
Points: 52, Level: 1
Points: 52, Level: 1 Points: 52, Level: 1 Points: 52, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2011
Location: Ankara Turkey
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
Reply With Quote
  #4 (permalink)  
Old July 27th, 2011, 12:10 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
oruckenan (July 27th, 2011)
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



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


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