ASP.NET - question regarding asp.net net project type?  ASP.NET - question regarding asp.net net project type?

Asked By Tridip Bhattacharjee
12-Feb-10 03:42 AM
onething is not clear to me that in asp.net 1.1 there was asp.net project type but from 2.0 there is no asp.net project type option rather
there is option called website. in website type project no solution is created and no link is created with IIS.
why microsoft design in this way from 2.0. i think there must be soldin reason & advantage behind it.
please explain the reason,advantage and MS Thought behind it if anyone knows the reason very well.
thanks in advance
  Sandra Jain replied to Tridip Bhattacharjee
12-Feb-10 06:07 AM
Here are the links that satisfy your exact question and moreover they they detail on the differences between Websites and web application projects and which one to choose for your scenario. Take a look:
http://www.dotnetspider.com/resources/1520-Difference-between-web-site-web-application.aspx
http://msdn.microsoft.com/en-us/library/aa730880%28VS.80%29.aspx#wapp_topic5
The Web Site project is compiled on the fly. You end up with a lot more DLL
files, which can be a pain. It also gives problems when you have pages or
controls in one directory that need to reference pages and controls in
another directory since the other directory may not be compiled into code
yet. Another problem can be in publishing. If VS isn't told to re-use the
same names constantly, it will come up with new names for the dll files
generated by pages all the time. That can lead to having several close
copies of dlls containing the same class name, which will generate plenty of
errors. The Web Site project was introduced with VS 2005, but has turned out
not to be extremely popular.

The Web Application Project was created as an add-in and now exists as part
of SP 1 for VS 2005. The main differences are the Web Application Project
was designed to work similar to the Web projects that shipped with VS.net
and VS 2003. It will compile the application into a single dll at build
time. In order to update the project it must be recompiled and the dll
published for changes to occur. Another nice feature of the Web Application
project is it's much easer to exclude files from the project view. In the
Web Site project, each file that you exclude is renamed with an exclude
keyword in the filename. In the Web Application Project, the project just
keeps track of which files to include/exclude from the project view without
renaming them, making things much tider.

Yes, there are reasons.  Yes, there are reasons.

12-Feb-10 02:28 PM
Here is an excerpt from a site, that seems to clear your question: 

"the first one creates a web site using the web site project model (default in VS2005) which is based on that you don'tT have a standalone project file, but project contents are defined by physical directory structure. Basically a web site project has also slightly different compilation model, for example not everything in the project is necessarily built into single assembly, and you don't necessarily have an explicit precompilation step (e.g a build in Vs) but pages are compiled individually when they are requested

The second one creates a web application with web application project model, where all the contents is specified in a project file, and also explicit precompilation step exists. It's similar to the model which existed in VS2003."

And http://www.techbubbles.com/aspnet/aspnet-website-vs-web-application-project/ is the TechBubble article that throws more light at the two Project options. 


Create New Account
help
Net hi friends Any one send frequently asked Important questions in C# .Net, ADO .Net, Asp .Net and Sql Server. . . . . . . . tx in Advance. . . . . . Hi, Find this. . (B)What is an IL? (B difference between VB.NET and C#? (I) what is the difference between System exceptions and Application exceptions? (I)What is CODE Access security? (I)What is a satellite assembly? (A) How How can we know a state of a thread? (A) What is use of Interlocked class ? (A) What is a monitor object? (A) What are wait handles? (A) What is ManualResetEvent the difference between thread and process? Chapter 4: Remoting and Webservices (B)What is an application domain? (B) What is .NET Remoting? (B) Which class does the remote object has to inherit? (I) what are two different types of remote consume it? (A) Do webservice have state? Chapter 5: Caching Concepts (B) What is an application object? (I) what is the difference between Cache object and application object? (I) How can get access to cache object? (A) What are dependencies in cache
to be a .net developer • To test a Web Service you must create a windows application or web application to consume this service? It is True / False? FALSE How many classes can a single.NET DLL contain? Answer1: As many Answer2: One or more What are lifetime? Give an example. Answer1 static int Myint–The life time is during the entire application. br> Answer2 The static modifier is used to declare a static member, which belongs cannot be used with indexers, destructors, or types. In C#, the static keyword indicates a class variable. In VB, the equivalent keyword is Shared. Its scoped to the class in which it occurs. Example a. Static int var / / in c#.net b. static void in Sql server as var_name int How do you separate business logic while creating an ASP.NET application? There are two level of asp.net debugging 1. Page level debugging For this
authentication modes and its implementation in projects hi, i am doing a project in asp.net. . i want to use a authentication mode in this project.it is a educational based c, c++ programs. . so i want to find the details of persons who visits my site.so i want to do some authentication in this project. How To: Use Forms Authentication with SQL Server in ASP.NET 2.0 patterns & practices Developer Center J.D. Meier, Alex Mackman, Blaine Wastell, Prashant Bansode Andy Wigley, Kishore Gopalan Microsoft Corporation August 2005 Applies To • ASP.NET version 2.0 • SQL Server 2000 Summary This How To shows you how you can provider. Forms authentication with SQL Server is most applicable in situations where users of your application are not part of your Windows domain, and as a result, they do not have
share session between Classic ASP applications and ASP.NET applications? I want to share session state between Classic ASP applications and ASP.NET applications. Can we share ? if yes , How ? Yes, it can. See the article at the link
Migration from ASP to ASP.net How to convert ASP site to ASP.NET site using C# http: / / www.asp.net / downloads / archived-v11 / migration-assistants / asp-to-aspnet hi, ASP.NET framework is very much