createUserWizard - security question as drop down?

Hi
I've got a create user wizard control and clicked the option so it writes out the HTML

I've changed the QUESTION text box to a dropdownlist and specified a few questions
However, now it's stopped working (it errors and says: Please enter a different security question")

The i dont have anything in the code behind that relates to the creating the user (that i know of)
so i think its all automated

i did make sure i called the DDL the same name as the Text box
what else do i need to do to get it working?
websssAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
exceterCommented:
Do not change that components, If you want to add more than one question, then just add extra page, and pu controls there, and do whatever you want.
0
 
websssAuthor Commented:
Thanks, but it all needs to be on one page (client spec)
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
websssAuthor Commented:
just re-read your reply
>If you want to add more than one question.....

I dont want to ask more than one question
I've simply converted the existing question text box to a drop down

i just need to know what code to write and where for it to override the default text box and take the selected text value of the dropdown

thanks
0
 
exceterCommented:
I dont want to ask more than one question
I've simply converted the existing question text box to a drop down
OK, I see. try this :
DropDownList ddl =
(DropDownList)CreateUserWizard1.CreateUserStep.Con tentTemplateContainer.FindControl("Question");
0
 
websssAuthor Commented:
Thanks

How do i assign it to the value that gets submitted?
0
 
exceterCommented:
DropDownList ddl =
(DropDownList)CreateUserWizard1.CreateUserStep.Con tentTemplateContainer.FindControl("Question");

CreateUserWizard1.Question = ddl.SelectedValue;
0
 
websssAuthor Commented:
sorry, my fault there

what i meant to say was, what function/sub/void .... do i put that in
0
 
exceterCommented:
0
All Courses

From novice to tech pro — start learning today.