Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 June 25th, 2004, 09:38 AM
Authorized User
Join Date: Apr 2004
Location: , , .
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataBinder.Eval(Container, etc. - Please explain


I need to modify someone else's code in order to show some extra data on a page. The page is returned as a DataGrid with all the items referred to as for example:
<%# DataBinder.Eval(Container, "DataItem.FirstName")
I tried just replacing the 'FirstName' bit with the names of the new data being returned but got
'System.Data.DataRowView' does not contain a property with the name etc' error

Can anyone help me include this extra field?


Pete M

Old June 25th, 2004, 11:52 AM
Friend of Wrox
Join Date: Jan 2004
Location: , , USA.
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts

**with the names of the new data being returned**
Just wondering are you having a period (.) in the column name?

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP Repeater without DataBinder safin ASP.NET 2.0 Professional 1 February 3rd, 2006 12:20 PM
DataBinder Eval in Repeater New2VBnetChic Classic ASP Basics 0 August 18th, 2005 12:44 PM
Eval??? tsimsha Classic ASP Basics 2 January 17th, 2005 10:02 PM
Subject: DataBinder.Eval Error! Datagrid. macupryk General .NET 0 October 3rd, 2004 02:35 PM
Databinder.Eval jpfree71 ASP.NET 1.0 and 1.1 Basics 2 August 26th, 2004 11:07 AM

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