Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
0Activity
P. 1
Course2 FrontEnding Web

Course2 FrontEnding Web

Ratings: (0)|Views: 33|Likes:
Published by tomalk33

More info:

Published by: tomalk33 on Jul 11, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

07/11/2013

pdf

text

original

 
Tutorial 1: Building Your First Web Application Project
The below tutorial walks-through how to create, build and run your first web app using C# and the ASP.NET Web Application Project support in VS2005.
Creating a New Project
Select File->New Project within the Visual Studio 2005 IDE. This will bring up the New Project dialog. Click on the “Visual C#” node in the tree-viewon the left hand side of the dialog box and choose the "ASP.NET Web Application" icon:Choose where you want the project to be created on disk (note that there is no longer a requirement for web projects to be created underneath theinetpub\wwwroot directory -- so you can store the project anywhere on your filesystem). Then name it and hit ok.
 
Visual Studio will then create and open a new web project within the solution explorer. By default it will have a single page (Default.aspx), anAssemblyInfo.cs file, as well as a web.config file. All project file-meta-data is stored within a MSBuild based project file.
 
 
Opening and Editing the Page
 
Double click on the Default.aspx page in the solution explorer to open and edit the page. You can do this using either the HTML source editor or thedesign-view. Add a "Hello world" header to the page, along with a calendar server control and a label control (we'll use these in a later tutorial):
 
Build and Run the Project
 
Hit F5 to build and run the project in debug mode. By default, ASP.NET Web Application projects are configured to use the built-in VS web-server(aka Cassini) when run. The default project templates will run on a random port as a root site (for example: http://localhost:12345/):You can end the debug session by closing the browser window, or by choosing the Debug->Stop Debugging (Shift-F5) menu item.
 
Looking under the covers
When you compile/build ASP.NET Web Application projects, all code-behind code, embedded resources, and standalone class files are compiled intoa single assembly that is built in the \bin sub-directory underneath the project root (note: you can optionally change the location if you want to - forexample, to build it into a parent application directory).If you choose the "Show All Files" button in the solution explorer, you can see what the result of our compilation output looks like:

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->