Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
258 Points
175 Posts
Apr 12, 2012 06:25 AM|LINK
HI
i have dropdown list control in side the create user wizard control
i need to bind some data to that dropdownlist control which is inside the create user wizard control
so how can i do that
i try some thing like that but not work
((DropDownList)CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("DlClass")).DataSource = DatabaseAccess.SelectClass();
((DropDownList)CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("DlClass")).DataBind();
The error is
Unseendreamz...
Member
258 Points
175 Posts
dropdown list databinding in the create user wizard control
Apr 12, 2012 06:25 AM|LINK
HI
i have dropdown list control in side the create user wizard control
i need to bind some data to that dropdownlist control which is inside the create user wizard control
so how can i do that
i try some thing like that but not work
((DropDownList)CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("DlClass")).DataSource = DatabaseAccess.SelectClass();
((DropDownList)CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("DlClass")).DataBind();
The error is
Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.