读书人

CreateUserWizard怎么获取定制控件

发布时间: 2012-01-11 22:28:46 作者: rapoo

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

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

读书人网 >asp.net

热点推荐