首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

CreateUserWizard怎么获取定制控件

2012-01-11 
CreateUserWizard如何获取定制控件?DropDownListRoleSelect(DropDownList)CreateUserWizard1.CreateUserS

CreateUserWizard如何获取定制控件?
DropDownList   RoleSelect   =   (DropDownList)CreateUserWizard1.CreateUserStep.FindControl( "Role ");
报未将对象的引用设置到对象的实例

[解决办法]
DropDownList RoleSelect = (DropDownList)CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl( "Role ");

热点排行