Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 ASP.net

Author  Topic 

leelu123
Starting Member

10 Posts

Posted - 2006-02-13 : 16:15:46
Hi,

I am trying to display the total number of records present in the dataset table in the footer template section of the datalist.

when I try the following code:

<%# DataList1.DataSource.Rows.Count%>

it says Rows is not the attribute of datasource...

any help with this is appreciated...



jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2006-02-13 : 16:56:02
You may need to cast your DataSource to the actual class that it is before retrieving the Rows property. Is it bound to a DataSet or a DataTable?
Go to Top of Page

leelu123
Starting Member

10 Posts

Posted - 2006-02-14 : 12:25:09
Hi,

My datasource is bound to a datatable present in dataset. do i need to cast the datasource to a datatable then..?


thanks
Go to Top of Page

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2006-02-14 : 14:06:08
It's worth a shot. That's the best I can think of without seeing the relevant parts of your code.
Go to Top of Page
   

- Advertisement -