Solved

How to populate textboxes in asp wizard step two with data from database based on userid entered in step 1

Posted on 2009-04-03
2
187 Views
Last Modified: 2013-11-07
I am using the asp wizard control to have a user enter their userid then goto step 2 here the user will have to answer two security questions. I believe I know how to verify the answers. What I need to understand is how to populate the textboxes in step two with data from a database table with the security questions for this user. Once this is done and verified the user is sent to the last step to reset their password. Can anyone show me an example of this or how this can be done. Thanks.
0
Comment
Question by:woodje
  • 2
2 Comments
 
LVL 41

Expert Comment

by:guru_sami
ID: 24063935
You can do that in OnNextButtonClick Event handler
1: Get the ActiveStepIndex ...see if it is your second step
if yes...then fetch the info from the DB and populate the two Textboxes

The key is OnNextButtonClick
e.g.
http://www.beansoftware.com/ASP.NET-Tutorials/Wizard-Control-ASP.Net-2.0.aspx
http://www.4guysfromrolla.com/articles/061406-1.aspx
0
 
LVL 41

Accepted Solution

by:
guru_sami earned 500 total points
ID: 24063971
or you can use OnActiveStepChange event handler as well

Check here: http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/standard/wizard.aspx
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

726 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