CST272 Project No. 5
Validation Controls
-
Start a new ASP.NET Web Site project and create an ASP.NET Web form that allows
a user to create a new account of some sort as follows:
-
The form prompts the user for his/her username and a password, plus the
user's e-mail address and Internet homepage address (URL)
-
Include one TextBox server control for the username, two TextBox controls
with
TextMode
set to Password
for the password
to validate that the two passwords were entered indentically, two TextBox
controls for the e-mail address to also validate that both were entered
indentically and one TextBox control for the user's Internet URL address
(home page)
-
Include validation server controls to ensure that all TextBoxes for
username, password and e-mail address are not blank (Internet homepage
is optional and may be left blank which should be indicated to the user)
-
Validate that the content of both "password" TextBoxes are exactly equal and
that the content of both "e-mail" TextBoxes are exactly equal
-
Validate that the content of all "e-mail" and "Internet URL" TextBoxes follow
the correct format
-
All validation error messages should be displayed in red
text with a smaller font size
-
Add a "Submit" Button server control to the form near the bottom of the page;
if all validation controls on the form "validate" clicking this button should
cause a second WebForm in this Web Site to be displayed in the browser;
this second WebForm should be a "Thank you for registering" page
-
Add a "Clear" Button server control near to the "Submit" Button; clicking
this Button should execute an event handler method that clears the contents
of all TextBox controls on the form
-
You may receive a possible 8 out 10 points for the assignment
as presented above; for additional credit complete one or both of the following:
-
Use additional elements including a "banner style" image and/or other
images, titles and subtitles using <h1>, <h2>, etc. tags,
horizontal rules, tables and an external style sheet for formatting
to make the two pages consistent with each other, and as visually and
artistically pleasing as possible (complete this option for 1
additional point)
-
Add a CustomValidator server control to the Web form that validates user
input from an additional TextBox; it is up to you to determine what information
must be entered into this TextBox (complete this option for 1
additional point)
-
If you complete both additional options above as well as all other parts
of this assignment correctly, you may receive full credit (a maximum of
10 possible points)
-
The completed project, a ZIP file that contains the folder with all files
for the website, is due to Prof. Struck as an attachment to a
Brightspace
dropbox by 11:59 p.m. on the date specified in the course outline.