Testing the control After (Apache web server tutorial) you close and save

Testing the control After you close and save the new page, you can take the CreateUserWizard control for a test drive. Just right-click the page s name (CreateAcct.aspx in my example) in Solution Explorer, and choose View in Browser. When the page opens, you should be able to create a new user account You ll have to remember the user name and password to test the account later. Figure 7-9 shows an example of a user account (in the Web browser) with the user name Testy. The hypothetical data you enter needs to be realistic enough to pass all the tests that the control imposes. For example, if the passwords don t match, you ll get an error message in the control and won t be able to create the account. Don t forget that your password needs to be at least seven characters long, and must include a non-alphanumeric character. For example, password! (with the exclamation point) is an acceptable (if rather obvious) choice. When the control contains reasonable data for a hypothetical user account, click the Create User button. You should see a Your account has been successfully created message and a Continue button. At this point there s no place to continue to, so you can just close the Web browser to return to VWD. Figure 7-9: Create User Wizard control in the Web browser. 134 Part II: Building Your Web Site A coupla CreateUserWizard tips If you take a look at the whole Properties sheet for the CreateUserWizard control, you ll see it has many properties. You can figure out what most properties are just by looking at their names and values. A couple of noteworthy properties include ContinueDestinationPageURL and Login CreatedUser. You can set the Continue DestinationPageURL property to whatever page you want to have open when the user clicks Continue after successfully creating an account. The LoginCreatedUser property determines whether or not the user is logged in automatically after creating the account. The default is True, the user is logged in.
Note: In case you are looking for affordable webhost to host and run your servlet application check Vision servlet hosting services

Leave a Reply