日期:2014-05-18  浏览次数:20463 次

Page_Load里的问题,速结贴!
AAA.ascx里有很多个DropDownList
如何在Page_Load先获取页面已有的DropDownList   items啊?
(不用FindControl)

------解决方案--------------------
js
------解决方案--------------------
手工添加的items?
DropDownList1.Controls
你试试
------解决方案--------------------
把.ascx中的 DropDownList控件的items的值 用一个ListItem保存起来
然后放在Session[..]中 每个页直接 ListItem li=(ListItem)Session[...] 用就行了
------解决方案--------------------
用一个早明为public List <string> list=new List <string> ();
来保存DropDownList的值。然后在AAA.aspx页面上访问这个list就可以。。