DataBinder.Eval: error

L

Lam

hi
I wrote a aspx page in c#. It execute the query to SQL 2000 database
and return a DataTable table, bind it to the DataGrid and display on the
screen. The page refresh every 10 seconds.
it has been running successfully most of the time. but some times it gives
me error
"DataBinder.Eval: 'System.Data.DataRowView' does not contain a property with
the name ID"

then it shows some error with the DataBind() method in dataGrid.
does any knows what's wrong?

Thanks a lot

Lam
 
K

Karl Seguin

You have a bug in your code where the DataTable doesn't have what you think
it should...seriously, it's hard to guess at what the issue could be, but it
certainly seems to be something in the way you are doing things...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
 
S

Sparky Arbuckle

I had the same error this morning using nested datalists. I selected a
field in my SQL and was getting an error that it wasn't a relation or
column in my datatable. Apparently I forgot to add runat="server" to my
datalist.

Look for the little things.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top