views:

353

answers:

2

Hello everyone,

I am reading from the following link,

http://reddnet.net/code/asp-net-web-site-vs-web-application-project-part-2/

My two confusions,

  1. What is the so-called issue "No control over your namespaces" cons from a web site project? Could anyone show me a sample to illustrate this issue please?

  2. What is the so-called issue "It is hard (read, nearly impossible) to reference pages, user controls, etc from custom classes in the app_code folder."? Could anyone show me a sample to illustrate this issue please?

I am using VSTS 2008 + .Net 3.5 + C#.

thanks in advance, George

+1  A: 

Duplicate of ASP.NET: Web Site or Web Application?

blowdart
@blowdart, I read through the link you referred and it is really nice. But I do not think the reference answers my two questions. any comments or ideas?
George2
+1  A: 
balexandre
A "web site" project can also be part of a larger solution with other projects (e.g. class library projects) and the web site can reference these other projects as well. This is not a unique feature of web applications.
M4N
@balexandre, I am interested in the reference issue you mentioned, as I mentioned a similar issue in my original post item 2. Why for web site project, "It is hard (read, nearly impossible) to reference pages, user controls, etc from custom classes in the app_code folder."? Could anyone show me a sample to illustrate this issue please?
George2
@Martin, how do you understand the item 2 reference issue I mentioned (quoted) in my original post? Looks like you do not think it is a real issue? Any comments?
George2
A good write up, but as Martin mentioned Web Site Project can be added to Solutions. Also Web Deployment Projects work with Web Site Projects as well.
metanaito