Vous êtes sur la page 1sur 1

Assignment 1

CIS-517:Client Server Development

Step 1: Install Visual Studio


There are two options: 1. Install Visual Studio 2010 Professional - instructions on blackboard under Documents Week 2 a. Free from Dreamspark - https://www.dreamspark.com/ b. Has many, many features and options c. No Activation Code d. Need DVD Burner e. Very large download 2. Install Visual Web Developer 2010 Express a. Free from Microsoft - http://www.microsoft.com/visualstudio/eng/downloads#d-2010express b. Executable file (no DVD burner needed) c. Limited feature set d. Large download, but smaller than VS 2010 Pro.

Step 2: Open the Project


1. 2. 3. 4. Download and unzip the Web Application Project. Navigate to the folder you unzipped. Double click on the MIS517_Assignment1.sln file. Visual Studio should launch the project.

Step 3: Adding code to the project


1. Find the Default.cs file in the Solution Explorer. Edit the missing code labeled //TODO so that it adds number1 and number2 together. Display the result on the page. So that if number1 = 5 and number2 = 7. The result would read: Results: 5 + 7 = 12 a. Attach a screen shot of the resulting page. b. What happens when you type non-numeric characters and press Add? c. What happens when you leave the Textboxes blank and press Add? d. What happens when you type decimals and press Add? 2. Add another button to the Default.aspx page, call it subtract. Double click on the button in Design View to create a listener the same as the listener for the Add button. Create code for the subtract button that will do the arithmetic like in item 1 for subtraction. a. Attach a screen shot of the results.

Vous aimerez peut-être aussi