English 中文(简体)
数据清单
原标题:List as DataSource for DataList

所有类型都安装了电子数据接口,可用于数据数据交换。 例如,清单。 但是,我们将为项目Template中的数据约束性表述写什么?

List<int> myList = new List<int>();
for(int i=0; i<10; i++)
   myList.Add(i);

myDataList.DataSource = myList;

...
<ItemTemplate>
<asp:TextBox ID="myTextBox" runat="server" Text= <%# Bind(???) %>  />
</ItemTemplate>
最佳回答

为此:

<%# Container.DataItem.ToString() %>
问题回答

暂无回答




相关问题
C# binding a combobox to a growing list

WinForms, .NET 3.5 I have a ComboBox that needs to display a growing list of items -- there is a long running process fetching items, and I want to be able to display items to the user as they build ...

Dynamic Datasource in SQL Server Stored Procudure

I have a SQL Server that houses Several Databases. I have a Main Database that holds several tables with entities and ID numbers. Then, each one of those entities has a correlating database (not a ...

数据清单

所有类型都安装了电子数据接口,可用于数据数据交换。 例如,清单。 但是,我们将为项目Template中的数据约束性表述写什么?

Grails - schema configuration

How can I configure Grails (in DataSource.groovy file) to use specific schema that a given username has access to, but it is not necessarily the default schema for that user. Thanks

JNDI Names -- Is Prefix "jdbc/" needed?

What s up with JNDI names? I m trying to get a javax.sql.DataSource using the new annotations feature of Java 5. It s not working for me, so I want to ask... I have a in my web.xml, inside of it is ...

热门标签