View Single Post
  #2 (permalink)  
Old June 30th, 2014, 03:07 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Take a look at this:

Code:
Result.Text += "<br />Your favorite language is" = FavoriteLanguage.SelectedValue;
See that last equals sign? That should be a plus. You may also want to add an additional space after the word is giving you this code:

Code:
Result.Text += "<br />Your favorite language is " + FavoriteLanguage.SelectedValue;
Quote:
Same error message when using the source downloaded code from Chapter 4
Are you sure you copied over the correct code or ran the correct file? The code that comes with the book is correct and should run without an error.

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:
mohamad (June 30th, 2014)