Aspdotnet-Suresh

aspdotnet-suresh offers C#.net articles and tutorials,csharp dot net,asp.net articles and tutorials,VB.NET Articles,Gridview articles,code examples of asp.net 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

Asp.net Difference between Website and Web Application in C#, VB.NET

Oct 13, 2012
Introduction:

Here I will explain the differences between website and web application in asp.net.

Description:

In previous posts I explained Difference between appsettings and connectionstrings, Difference between datareader,dataset and dataadapter and many articles relating Interview Questions in asp.net. Now I will explain the differences between website and web application in asp.net.

Generally whenever we are trying to create new web project in visual studio we will fund two options ASP.NET Web Application and WebSite. What is the difference between these two which one we need to select to create project in asp.net?

It's choice of the people can go for web application or website we cannot say that which one is better because both is having advantages and disadvantages. Check below details for webaplication and website

Web Application

1. If we create any class files / functions those will be placed anywhere in the applications folder structure and it is precomplied into one single DLL.

2. In web application we have chance of select only one programming language during creation of project either C# or VB.NET.

3. Whenever we create Web Application those will automatically create project files (.csproj or .vbproj).

4. We need to pre-compile the site before deployment.

5. If we want to deploy web application project we need to deploy only .aspx pages there is no need to deploy code behind files because the pre-compiled dll will contains these details.

6. If we make small change in one page we need to re-compile the entire sites.

WebSite

1. If we create any class files/functions those will be placed in ASP.NET folder (App_Code folder) and it's compiled into several DLLs (assemblies) at runtime.

2. In website we can create pages in multi programming languages that means we can create one page code in C# and another page code in vb.net.

3. Web Sites won’t create any .csproj/.vbproj files in project

4. No need to recompile the site before deployment.

5. We need to deploy both .aspx file and code behind file.

6. If we make any code changes those files only will upload there is no need to re-compile entire site  

If you enjoyed this post, please support the blog below. It's FREE!

Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email.

subscribe by rss Subscribe by RSS subscribe by email Subscribe by Email

36 comments :

Bharat Gunjal said...

Nice article....i like it

mm said...

thanx dear. now i know the difference

please can you make article explain in it how to increase or decrease font size in all page contents

EbonyBonner said...

I wasn’t aware of some of the information that you mentioned so I want to just say thank you.

pra said...

yes this is very nice

Anonymous said...

Nice One.

Anonymous said...

Nice Articles, very useful.

mohan kumar said...

superb,thanks for gave tat

mohan kumar said...

superb,thanks for gave tat

Anonymous said...

is there any performace issue between these two?

Anonymous said...

Nice and concise article. Thanks.

Anonymous said...

awesome explanation

Anonymous said...

Not Bad

Mitu said...

Nice Cool Article.........

Anonymous said...

Very Nice Explanation. Got it clearly. Thanks.

heroman said...

Hi ALL,
How to create a web application by MS Visual Studio?
Can anyone do tutorial an example for above article?

Anonymous said...

I have one doubt.. Why we use protected in events in asp.net.. Please tell me someone..

Sunil said...

very good!

Anonymous said...

Superb dear.......

Unknown said...

nice

Arun said...

Nice points

Vamshikrishna said...

great explanation.........

Anonymous said...

great sir ji......

Anonymous said...

how to add css template to master page??

Gurdeep Kaur said...

These articles helped me a lot ..
Very nice n easy examples

Anonymous said...

Thanks, for such a wonderfull article

Kettavan said...

Can we convert asp.net webapplication to asp.net webste.............?????????????????

Anonymous said...

Thank u very much...

Anonymous said...

Very Nice

Anonymous said...

Great..Now i Got the difference...

salah saleh said...

nyc article

Atul Verma said...

Excellent Article..Thanks a lot!!!!

Harminder Singh said...

Excellent.. thanks a lot

Dinesh Kumar said...

Excellent . I created OWN project in ASP.NET in 3 tier architecture. But i want to convert cloud based. How to convert?.Is it Possible?

chandu said...

HI suresh . every thing u r posting is very helpful to learners .Thank you so much

Gaddam Raju Reddy said...

good

Anonymous said...

very helpful thank you :)

Give your Valuable Comments

Other Related Posts

© 2010-2012 Aspdotnet-Suresh.com. All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.