{infiniteZest}
// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
AJAX
Apple
ASP.NET
.NET
Git
Google / Android
Python / IronPython
Miscellaneous
SQL Server
Test Your Knowledge: First Web Program (Web Project) in C# Explained
Summary
How do you develop an ASP.NET program using the Web Project model?
 
Table of Contents

What is a web program in C#?

Creating a Web “Project”

Figure 1. First Web Application Project

The Generated Files

Figure 2. Solution Explorer for a newly generated web project

FirstWeb.sln

FirstWeb.csproj

App_Data

Default.aspx.*

Web.config

Code Discussion

Default.aspx

Listing 1. The code in Default.aspx

Default.aspx.cs

Listing 2. The code (or code-behind) file Default.aspx.cs

Default.aspx.designer.cs

Listing 3. The auto-generated designer file (Default.aspx.designer.cs)

Running the Program

Add a Label

Figure 3. Adding a Label control to the Design surface of Default.aspx

Run the Program

Figure 4. Running the program

Other Articles

 
Take the Test
Start the Test:
First Web Program (Web Project) in C# Explained
Read the Article
Go to Article:
First Web Program (Web Project) in C# Explained
Review Answers for Questions in this Test
Article Series
Previous Article:
First Web Program (Web Project) in C# Explained
This article is part of the Series:
Article Series: First Programs in C# Explained
Next Article:
First Web Program (Web Site) in C# Explained
Bookmark and Share This

More Articles With Similar Tags
icon-first-web-new-project.jpg
This article explains and dissects the pieces involved in creating the first web program in C# using the Web Project method (as opposed to the Web Site method).
icon-first-web-site-solution-explorer.jpg
This article explains and dissects the pieces involved in creating the first web program in C# using the Web Site method (as opposed to the Web Program method).
What is involved in developing a web-based program using the C# programming language with Web Site - Solution as the model.
This test has questions on developing first console (shell) based programs using the C# programming language.
icon-web-proj-site-dir-compare.jpg
Visual Studio 2005 and Visual Studio 2008 offer two options for creating an ASP.NET web program – a Web Project or Web Site. This article discusses the main reasons why you would choose one over the other.
About  Contact  Privacy Policy  Site Map