开发者

ASP.Net DropDownList Sharing a DataSource in a Repeater

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜