13.07.2015 Views

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 1: Introduction to <strong>ASP</strong>.<strong>NET</strong> <strong>3.5</strong> 15Ask the ExpertQ: Why are <strong>ASP</strong>.<strong>NET</strong> and C# developed in separate windows if they are part of thesame program? Aren’t most programs developed in a single file?A: <strong>ASP</strong>.<strong>NET</strong> is a set of forms and controls, while C# is a dynamic language that <strong>com</strong>municatesnot only with <strong>ASP</strong>.<strong>NET</strong> but also with databases and outside links. Think of the separationas you would an automobile. The car without the engine focuses on the arrangement ofseats and the different controls that make a car ready to be used for transportation. Thatis the <strong>ASP</strong>.<strong>NET</strong> aspect of the code behind. The car’s engine is what makes it go. It is adifferent element than the car’s body and takes a different kind of thinking to work on it.Nevertheless, the engine interacts with the car body and responds to its controls. C# is likethe engine, and by keeping it separate during development, you can clearly focus on whatyou want it to do.your own <strong>com</strong>puter and use it on your LAN. Depending on the version of Windows Vistathat you have, you may or may not have IIS7 available to you, and if you do not, you canupgrade your version of Windows Vista. The following steps show how to do this:1. Go to Start | Control Panel.2. In the Control Panel select Programs.3. When the Programs window appears, under Programs And Features select TurnWindows Features On Or Off. A User Account Control window appears. (These stepsare slightly different on Windows Vista Ultimate.)4. Click the Continue button. You will see a “please wait” notice. Wait until you see thecheck boxes and their folders as shown in Figure 1-6.5. Expand Internet Information Services | World Wide Web Services | ApplicationDevelopment Features. Check the .<strong>NET</strong> Extensibility, <strong>ASP</strong>.<strong>NET</strong>, ISAPI Extensions, andISAPI Filters boxes as shown in Figure 1-7.6. Once you’ve checked all of the options indicated, click the OK button. You’ll have towait while all of the changes are made to your system.7. To make sure it is installed correctly, open your browser (Internet Explorer, Firefox,or any current browser will work fine). Type http://localhost/ in the URL windowon your browser. Figure 1-8 shows what you will see if the IIS7 installation workedsuccessfully.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!