Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 1.1
This is the forum to discuss the Wrox book Beginning ASP.NET 1.1 with Visual C#.NET 2003 by Chris Ullman, John Kauffman, Chris Hart, Dave Sussman, Daniel Maharry; ISBN: 9780764557088
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.1 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 March 17th, 2005, 04:15 AM
tdk tdk is offline
Registered User
 
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 10 problem

Hi,

I'm a beginner in asp c#

I'm getting the error message below when running the file teams.aspx in chapter 10.

CS0117: 'System.Web.UI.Control' does not contain a definition for 'DataItem'

Same error when copy and paste the code from downloaded zip file.

The line is
<asp:linkbutton id="TeamNameLink" style="COLOR: darkred" runat="server" CommandName="ShowTeam" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "TeamID") %>' text='<%# DataBinder.Eval(Container.DataItem, "TeamName") %>'></asp:linkbutton>

Help appreciated

 
Old March 17th, 2005, 05:40 AM
tdk tdk is offline
Registered User
 
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Not to worry, found out what I was doing wrong.

 
Old April 24th, 2005, 12:51 PM
Registered User
 
Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

I am having exactly the same problem as tdk had. Does anyone know how to fix this?

Many Thanks.
 
Old May 5th, 2005, 09:35 AM
Registered User
 
Join Date: May 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by tdk
 Not to worry, found out what I was doing wrong.

Could you post what you found out to be the problem? I'm having the same problem as you.

Thanks

 
Old May 16th, 2005, 10:17 AM
Registered User
 
Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi brainfuel.

When you drag a DataList control onto the page, it automatically generates a close tag like </asp:DataList>. Make sure you are putting the controls and data binding code before this.

Hope this helps.





Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter 10 problem nikItas BOOK: Beginning Access 2003 VBA 1 August 5th, 2008 08:54 AM
Chapter 10 problem rstoos Beginning PHP 1 September 16th, 2006 01:14 PM
Chapter 10 (P 367) Connection Problem sookarama BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 September 6th, 2006 07:59 AM
Chapter 10 login problem Dennis Mollet BOOK: Beginning VB.NET Databases 1 August 18th, 2005 04:07 AM
Chapter 10 Navigator.aspx problem jason88 BOOK: Beginning ASP.NET 1.0 0 May 27th, 2004 03:54 AM





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