anothermay

(哪 热)

博客园 首页 新随笔 联系 订阅 管理

    

CreateUserWizard中添加控件

我使用CreateuserWizard时,需要扩展CreateuserWizard控件,在其中添加的控DropDownList,但是在在代码里无法取得它的ID,查了大量的资料后才发现用这样的方法可以得到这个值DropDownList list=(DropDownList)CreateUserWizard1.CreateUserStep.ContentTemplateContainer. FindControl("DropDownList1");

其他控件类似,如TextBox
string tmp = ((TextBoxCreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl ("txtYz")).Text.Trim();

posted on 2007-09-20 12:26  nother  阅读(559)  评论(1)    收藏  举报