Question: Create an Empty Web Site and add one ASPX page called default.aspx. You're going to simulate an event registration system. The purpose of this lab

Create an Empty Web Site and add one ASPX page called default.aspx. You're going to simulate an event registration system. The purpose of this lab is to become familiar and accustomed to using some of the common standard controls in ASP.NET.

You should create a registration form containing a TextBox, Calendar Control, RadioButtonList, and two ListBoxes. The RadioButtonList should have the three items listed and the controls should be organized out as shown below.

The requirements are:

If you try to add a registration with a blank name, an alert should appear indicating the Name is required.

Add a CSS class to the page for which sets the full border of an element with 1 red, 1 pixel thick, solid line. When a registration name is left blank while submitted, apply this CSS class to the textbox showing it's border red.

Remove it after successfully entering a name.

Similarly, if a non-weekend (Monday through Friday) date is selected, an alert should appear indicating a weekend date is required.

Once a registration is added, it should appear in the registration listbox formatted as Name,Registration Date, Dietary preference.

For example: Michael, NA, 1/27/2018

The Cancel registration button be enabled only when something is selected in the registration box to cancel

A registration can be canceled, and if so, it should appear in the Canceled Registration list box.

You should clear the name field only after successfully entering a registration; do not clear

To test your knowledge of postback, make sure you add each radiobutton option using the C# in the code behind. Using the traditionalist control simplifies this.

When the page loads, dietary requirements have NA as preselected.

Things to Check: Make sure you can add and cancel two registrations one after another.

If name is blank and alerts appears, the box for the name should also have a red border.

If box has red border, and name is entered but calendar now has the alert, when submitted the red border and alert for the name should no longer appear.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!