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
加载中,请稍侯......
精彩评论