locked
dropdownlist control databinding in the create user wizard control RRS feed

  • Question

  • 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.


    unseendreamzzz


    Thursday, April 12, 2012 6:28 AM

Answers

All replies