Solved

createUserWizard - security question as drop down?

Posted on 2011-03-15
9
602 Views
Last Modified: 2012-05-11
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
Comment
Question by:websss
  • 5
  • 4
9 Comments
 
LVL 3

Expert Comment

by:exceter
ID: 35136302
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
 

Author Comment

by:websss
ID: 35136734
Thanks, but it all needs to be on one page (client spec)
0
 

Author Comment

by:websss
ID: 35137073
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Expert Comment

by:exceter
ID: 35144158
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
 

Author Comment

by:websss
ID: 35144965
Thanks

How do i assign it to the value that gets submitted?
0
 
LVL 3

Expert Comment

by:exceter
ID: 35145166
DropDownList ddl =
(DropDownList)CreateUserWizard1.CreateUserStep.Con tentTemplateContainer.FindControl("Question");

CreateUserWizard1.Question = ddl.SelectedValue;
0
 

Author Comment

by:websss
ID: 35145949
sorry, my fault there

what i meant to say was, what function/sub/void .... do i put that in
0
 
LVL 3

Expert Comment

by:exceter
ID: 35153589
0
 
LVL 3

Accepted Solution

by:
exceter earned 500 total points
ID: 35153592
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question