0
我有一个sqldatasource
的网络表格,填充DropDownList
。网络表单的Page_Load
从DropDownList
中读取。SqlDataSource何时填充控件?
当Page_Load
执行时,看起来DropDownList
中不存在该值; Page_Load期间DropDownList.Items.Count
等于0。
所以,当下拉菜单填充?我知道我可以在代码隐藏中填充它,但我更喜欢使用sqldatasource
。
谢谢。