Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
|
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 April 14th, 2011, 02:26 PM
Registered User
 
Join Date: Apr 2011
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default Try It Out page 570 and databinding problem

Hello to everyone

On the end of try it out, i request page All.aspx and right away this message comes up:

DataBinding: '<>f__AnonymousType1`2[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' does not contain a property with the name 'Id'.

I found this page:
http://www.dreamincode.net/forums/to...g-cloud-color/

but wasn't helpfull 100%....

Am i the only one who has this error?

thanks for all help :-)

Last edited by marcin; April 14th, 2011 at 02:28 PM..
 
Old April 15th, 2011, 02:56 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,

Can you post the markup you're using and the code from the Code Behind? Looks you're trying to bind to an Id property but are not selecting it.

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!
 
Old April 15th, 2011, 10:32 AM
Registered User
 
Join Date: Apr 2011
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hey Imar

Thanks for the reply. I fixed that in the meantime. on my own.

You were right, i didn't select it, in the code behind of the All.aspx.

And the reason for that is that sometimes i make my own names, i forgot that, and folow you names. So that was the problem.

Thanks anyway.

Last edited by marcin; April 15th, 2011 at 11:02 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chap 16 pg 570 System.Collections.Generic has some invalid arguments tomche BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 7 August 6th, 2009 10:08 AM
chapter 16 pg 570 andrewajp002 BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 3 February 5th, 2006 07:16 PM
databinding to a textbox, whitespace problem bazookajoe76 C# 5 January 19th, 2005 02:39 PM





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