[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
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
Medium Priority
?
200 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 2000 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month18 days, 4 hours left to enroll

830 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