开发者

Binding data to a Data Repeater - VB.NET?

开发者 https://www.devze.com 2022-12-11 17:08 出处:网络
I\'m looking for a line or two of code that will bind a DataSet.Datatable colum开发者_运维百科n to a textbox on a Datarepeater?first of you need to bind dataset to Repeater.

I'm looking for a line or two of code that will bind a DataSet.Datatable colum开发者_运维百科n to a textbox on a Datarepeater?


first of you need to bind dataset to Repeater. DataRepeater.DataSource = Dataset.Table("name") DataRepeater.DataBind()

and then find your Textbox Text="" property and set there <%# Bind("columnname") %>


There's a pretty good How-to video on MSDN that covers the DataRepeater. I'd suggest taking a look there.

http://msdn.microsoft.com/en-us/vbasic/cc411420.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消