我在母版页中有一个asp:占位符。从内容页面(在page_init中)我动态创建下拉列表并添加到母版页中的asp:占位符。如何通过id?
访问这些动态创建的控件我试过这个
Dim Outer_CP As ContentPlaceHolder Outer_CP = TryCast(Me.Master.Master.FindControl("MyContent"), ContentPlaceHolder)
Dim mydropdownsAs PlaceHolder = TryCast(Outer_CP.FindControl("mydropdownsAs "), PlaceHolder)
Dim ddlControl As DropDownList = CType(mydropdownsAs .FindControl(idName), DropDownList)