• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 625
  • Last Modified:

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?
0
websss
Asked:
websss
  • 5
  • 4
1 Solution
 
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
 
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
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now