Banner Ad

Monday, January 30, 2012

First ASP .Net Application

By Francis   Posted at   12:48 PM   No comments

In this first article, I’m going to take a simple program and explain it in detail. As I told already, I’m going to explain the concepts using the language VB.Net. So the coding snippets in VB.Net only.

So this is the first tutorial, I took a simple problem which cover almost everything ( I meant, it covers ADO.Net, SQL Server Connection etc).

The Problem:

In a web form (don’t confuse what is a web form!!!) I’m going to add the 2 dropdown namely:

1) Country Dropdown

2) State Dropdown

The Country Drop down contains a list of countries and the state contains list of states. Whenever the user select the country from country drop down, the respective states which is located on that Country will be loaded in to the State drop down.

Create A Project in Visual Studio:

Before that I will explain step by step how to add a project ASP.Net in Visual Studio 2010.

Step 1:

Open Visual Studio 2010. The Visual studio startup screen look like this.

VisualStudio-Startup-Screen

Step 2:

Click on “New Project”, which opens the following screen. Please take a close look in the highlighted areas.

VisualStudio-CreateNewProject

I have choosen, Visual Basic as a languge, “ASP.Net Web Application” as Project Template and "Target Framework version as 3.5.

VB-ASPDotNet-Application

Step 3:

After clicking on the “OK” button in the above screen. Solution file named as  “AllInOne” will be loaded in Visual Studio.

ASPDotNet-Application

Step 4:

In the right hand side a little window called as “Solution Explorer”, which listed all the files by clicking the “Show All Files” icon. (Take a look at the highlighted area).

Solution-Explorer

 

ShowAllFiles-SolutionExplorer

So in this tutorial, I explained how to add an Visual Studio project. In the next tutorial, I will explain the concepts.

Happy Programming!!!!

About Francis

Francis, an Associate at Cognizant. Having 7+ Years of experience in Microsoft web technologies.

0 comments :

Please give your valuable comments to improve the contents

Connect with Us