473,395 Members | 1,623 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

DataBound DataList showing the correct number of empty elements!

Hi, i'm experiencing strange problems with the datalist webcontrol.

I have it bound to a datatable like this:

Me.TreeNodeList.DataSource = _existingNodesTable
Me.TreeNodeList.DataBind()

which does contain the elements i want to display. The problem is that
the final output looks like this:

<table ...>
<tr><td></td></tr>
<tr><td></td></tr>
<tr><td></td></tr>
...
</table>

Actually the number of lines is the same as the number of records in the
datatable, but they're all empty!

Thanks in advance for any help!

Luis

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #1
1 1358
Luis,

A datalist has to have an item template. Do you have one? What is there?

If all you want is just to show the table as it is you should use a datagrid
wth AutoGenerateColumns=true, which is default.

Eliyahu

"Luis Ferrao" <lf*@undisclosed.com> wrote in message
news:eu**************@TK2MSFTNGP09.phx.gbl...
Hi, i'm experiencing strange problems with the datalist webcontrol.

I have it bound to a datatable like this:

Me.TreeNodeList.DataSource = _existingNodesTable
Me.TreeNodeList.DataBind()

which does contain the elements i want to display. The problem is that
the final output looks like this:

<table ...>
<tr><td></td></tr>
<tr><td></td></tr>
<tr><td></td></tr>
..
</table>

Actually the number of lines is the same as the number of records in the
datatable, but they're all empty!

Thanks in advance for any help!

Luis

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Steve | last post by:
Hi, I have a problem here with bounding data inside a datalist. Currently I am working on a page which I can have a list of items using a datalist(listA). Inside this datalist(listA) i would...
6
by: tshad | last post by:
I need to get to a status label I have on my footer section of my datalist. There is no event happening that would go to the footer. I am just doing some processing and want to update the label...
0
by: bryanp10 | last post by:
I have a DataList on my page which contains multiple DropDownLists. My page defaults to showing six rows in the DataList. I want the ability to dynamically add rows if needed. Right now I'm just...
3
by: Mirek Endys | last post by:
I have DataList as part of DataList item. DataList in DataList. The parent DataList working well including Edit command, that shows Edit template and correctly bind the data into edit template...
7
by: | last post by:
I'm using ASP.NET 2.0, C#, SQL Server 2005, and databound controls like the DataList and the GridView. Right now I'm using SqlDataSource as part of very quick and dirty site; I'm not looking to...
1
by: beachboy | last post by:
hello, I have set "RepeatColumns" on myDataList = 5, if the reminder of itemdata is not multiple of 5.. e.g: only have 3 items. then the display will break... any method i can solive this and...
1
by: studen771 | last post by:
Thanks in advance to anyone who can help :) I have my datalist bound to a normal, single dimension string array (with three elements) as its data source. In the scripting for the datagrid, I have...
4
by: Derty | last post by:
Any way to limit the length of databound text on a datalist itemtemplate?
1
by: Brock | last post by:
First note that I am using Framework 1.1. I have an .aspx page that is displaying a list of employees, but only the Employee Number, First Name, Last Name, and Title. It is working great. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.