Solved

createUserWizard - security question as drop down?

Posted on 2011-03-15
9
601 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

789 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