开发者

ASP.Net DropDownList Sharing a DataSource in a Repeater

开发者 https://www.devze.com 2023-03-18 02:11 出处:网络
I have an ASP开发者_Python百科.net repeater that contains a DropDownList inside the <ItemTemplate>. I would like to bind all of the DropDownLists to a single data source:

I have an ASP开发者_Python百科.net repeater that contains a DropDownList inside the <ItemTemplate>. I would like to bind all of the DropDownLists to a single data source:

List<Status> statusList = QuoteRequestLogic.Instance.GetQuoteRequestStatusList();

I know that I can attach to the ItemDataBound event of the repeater, find the DropDownList, and bind it to my List<Status>. Is this the most efficient method? If not, what is?

Thanks in advance!


It is probably the best possible way to achieve what you want I think

0

精彩评论

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