473,383 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Whats diference?

Hi, what is diference between:

File -New Web Site
and
File -New Project -VB/C# -Web Application

??????

VS 2005

Thanks!
Oct 10 '07 #1
7 2250
Two completely different types of project. The first creates a Web Site
Project. The second created a Web Application Project.

The main difference is the web site project does not compile into a single
dll, it creates many dlls, one for each page or directory.

The Web Application Project compiles all the code in the project into a
single dlls. The Web Application Project behaves more like the one that
shipped with VS 2003 and 2002. It was introduced for VS 2005 after launch
and later integrated into SP1 because a large number of developers didn't
like the new Web Site Project.
--
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression
"Paulo" <pr*****@uol.com.brwrote in message
news:u2**************@TK2MSFTNGP03.phx.gbl...
Hi, what is diference between:

File -New Web Site
and
File -New Project -VB/C# -Web Application

??????

VS 2005

Thanks!

Oct 10 '07 #2
web application projects still create one dll per page. the difference
is that visual studio compiles the codebehind files into one dll, then
call the asp_compiler to build a dll per page, referencing the dll. so
web application actually end up with one more dll than web sites.

the practical difference is for web applications a project file is
maintained by visual studio (to compile the codebehind files) and
because the codebehinds are in one dll, they implicitly have a reference
to each other.

in a web site the pages are independent and if a page references another
page the proper way (as good coding would require anyway) is to
implement an interface in the app_code dir, then have the page implement
the interface. to call methods on another page, you cast it the known
interface. this turned out to be too complicated for causal coders, so
web application projects were added to asp.net 2.0.

i'd recommend you use web sites instead of web applications, as its a
cleaner approach.
-- bruce (sqlwork.com)


Mark Fitzpatrick wrote:
Two completely different types of project. The first creates a Web Site
Project. The second created a Web Application Project.

The main difference is the web site project does not compile into a single
dll, it creates many dlls, one for each page or directory.

The Web Application Project compiles all the code in the project into a
single dlls. The Web Application Project behaves more like the one that
shipped with VS 2003 and 2002. It was introduced for VS 2005 after launch
and later integrated into SP1 because a large number of developers didn't
like the new Web Site Project.

Oct 10 '07 #3
Bruce,
Where does the web application create additional dlls? This was the whole
point of the web application project and is one of the major features that
Scott Guthrie mentions in his announcement about their release? I've been
using it since the beta version of it and I only have the one dll for the
application, not one per page. Are you talking about the .compiled files
that are within the ASP.Net tempory cache? The only .compiled files I have
are for the ascx user controls in my app, not for all the pages.

--
Mark Fitzpatrick
Microsoft MVP - Expression

"bruce barker" <no****@nospam.comwrote in message
news:OB**************@TK2MSFTNGP06.phx.gbl...
web application projects still create one dll per page. the difference is
that visual studio compiles the codebehind files into one dll, then call
the asp_compiler to build a dll per page, referencing the dll. so web
application actually end up with one more dll than web sites.

the practical difference is for web applications a project file is
maintained by visual studio (to compile the codebehind files) and because
the codebehinds are in one dll, they implicitly have a reference to each
other.

in a web site the pages are independent and if a page references another
page the proper way (as good coding would require anyway) is to implement
an interface in the app_code dir, then have the page implement the
interface. to call methods on another page, you cast it the known
interface. this turned out to be too complicated for causal coders, so web
application projects were added to asp.net 2.0.

i'd recommend you use web sites instead of web applications, as its a
cleaner approach.
-- bruce (sqlwork.com)


Mark Fitzpatrick wrote:
>Two completely different types of project. The first creates a Web Site
Project. The second created a Web Application Project.

The main difference is the web site project does not compile into a
single dll, it creates many dlls, one for each page or directory.

The Web Application Project compiles all the code in the project into a
single dlls. The Web Application Project behaves more like the one that
shipped with VS 2003 and 2002. It was introduced for VS 2005 after launch
and later integrated into SP1 because a large number of developers didn't
like the new Web Site Project.
Oct 10 '07 #4
So, what you all recommends?

WebApp ou WebSite ?

"Mark Fitzpatrick" <ma******@fitzme.comescreveu na mensagem
news:ep**************@TK2MSFTNGP04.phx.gbl...
Bruce,
Where does the web application create additional dlls? This was the whole
point of the web application project and is one of the major features that
Scott Guthrie mentions in his announcement about their release? I've been
using it since the beta version of it and I only have the one dll for the
application, not one per page. Are you talking about the .compiled files
that are within the ASP.Net tempory cache? The only .compiled files I have
are for the ascx user controls in my app, not for all the pages.

--
Mark Fitzpatrick
Microsoft MVP - Expression

"bruce barker" <no****@nospam.comwrote in message
news:OB**************@TK2MSFTNGP06.phx.gbl...
>web application projects still create one dll per page. the difference is
that visual studio compiles the codebehind files into one dll, then call
the asp_compiler to build a dll per page, referencing the dll. so web
application actually end up with one more dll than web sites.

the practical difference is for web applications a project file is
maintained by visual studio (to compile the codebehind files) and because
the codebehinds are in one dll, they implicitly have a reference to each
other.

in a web site the pages are independent and if a page references another
page the proper way (as good coding would require anyway) is to implement
an interface in the app_code dir, then have the page implement the
interface. to call methods on another page, you cast it the known
interface. this turned out to be too complicated for causal coders, so
web application projects were added to asp.net 2.0.

i'd recommend you use web sites instead of web applications, as its a
cleaner approach.
-- bruce (sqlwork.com)


Mark Fitzpatrick wrote:
>>Two completely different types of project. The first creates a Web Site
Project. The second created a Web Application Project.

The main difference is the web site project does not compile into a
single dll, it creates many dlls, one for each page or directory.

The Web Application Project compiles all the code in the project into a
single dlls. The Web Application Project behaves more like the one that
shipped with VS 2003 and 2002. It was introduced for VS 2005 after
launch and later integrated into SP1 because a large number of
developers didn't like the new Web Site Project.

Oct 10 '07 #5
Actually it seems a little more complicated than that.

As well as those two methods, you can also create a website in IIS and
Microsoft Expression.

All the methods seem slightly incompatible. Depending on how you created
it, you get different errors sometmes running them. VS uses its own web
server I think.

Anyway, as you asked, what's the best way ?
-----Original Message-----
From: Paulo [mailto:pr*****@uol.com.br]
Posted At: Wednesday, 10 October 2007 9:28 PM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: Whats diference?
Subject: Whats diference?

Hi, what is diference between:

File -New Web Site
and
File -New Project -VB/C# -Web Application

??????

VS 2005

Thanks!

Oct 10 '07 #6
WAP project creates a temporary assembly for each ASPX "Page" in addition to
the single assembly for the "Site" in the /bin folder, same as VS 2003 always
did.
However Bruce asserts that Web Site projects are preferable, an idea with
which I totally disagree. It is Web Application Projects that are cleaner,
more manageable, and less prone to errors.
--Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"Mark Fitzpatrick" wrote:
Bruce,
Where does the web application create additional dlls? This was the whole
point of the web application project and is one of the major features that
Scott Guthrie mentions in his announcement about their release? I've been
using it since the beta version of it and I only have the one dll for the
application, not one per page. Are you talking about the .compiled files
that are within the ASP.Net tempory cache? The only .compiled files I have
are for the ascx user controls in my app, not for all the pages.

--
Mark Fitzpatrick
Microsoft MVP - Expression

"bruce barker" <no****@nospam.comwrote in message
news:OB**************@TK2MSFTNGP06.phx.gbl...
web application projects still create one dll per page. the difference is
that visual studio compiles the codebehind files into one dll, then call
the asp_compiler to build a dll per page, referencing the dll. so web
application actually end up with one more dll than web sites.

the practical difference is for web applications a project file is
maintained by visual studio (to compile the codebehind files) and because
the codebehinds are in one dll, they implicitly have a reference to each
other.

in a web site the pages are independent and if a page references another
page the proper way (as good coding would require anyway) is to implement
an interface in the app_code dir, then have the page implement the
interface. to call methods on another page, you cast it the known
interface. this turned out to be too complicated for causal coders, so web
application projects were added to asp.net 2.0.

i'd recommend you use web sites instead of web applications, as its a
cleaner approach.
-- bruce (sqlwork.com)


Mark Fitzpatrick wrote:
Two completely different types of project. The first creates a Web Site
Project. The second created a Web Application Project.

The main difference is the web site project does not compile into a
single dll, it creates many dlls, one for each page or directory.

The Web Application Project compiles all the code in the project into a
single dlls. The Web Application Project behaves more like the one that
shipped with VS 2003 and 2002. It was introduced for VS 2005 after launch
and later integrated into SP1 because a large number of developers didn't
like the new Web Site Project.

Oct 10 '07 #7
"Peter Bromberg [C# MVP]" <pb*******@yahoo.yohohhoandabottleofrum.comwrote
in message news:6B**********************************@microsof t.com...
However Bruce asserts that Web Site projects are preferable, an idea with
which I totally disagree.
Me too, FWIW...
It is Web Application Projects that are cleaner, more manageable, and less
prone to errors.
Absolutely! I never, ever create a web site project in ASP.NET...

--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 10 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: cricketunes | last post by:
Hi folks, this one's had me stumped! $conn=ora_logon("cricketunes@pickles","j8j3kf"); if ($conn != TRUE) die("Unable to connect to oracle, exiting...\n"); $cursor = ora_open($conn); if...
5
by: Mike M | last post by:
Hi all, I ahve the following SQL string but when i try to response.Write it there is a error where the ',' should be between "city" and "County" SQL = "INSERT * INTO customers (Company_Name,...
6
by: Colin Steadman | last post by:
I have created a function to kill all session variables that aren't in a safe list. This is the function - Sub PurgeSessionVariables For Each Item In Session.Contents Select Case Trim(Item)...
3
by: Kevin Steffer | last post by:
Hi group I have a webform which I want to make an ftp connection for a filetransfer from. The thing is when I use the WebRequest class it says "The URI prefix is not recognized" and my URI is...
2
by: SOR | last post by:
I'm writing a guestbook and given the number of entrys the guestbook might have can vary quite a lot - the nav links to view the guestbook entrys need to generated live at the time to suit . ...
1
by: Bruno Piovan | last post by:
Hi, what is the diference between daAdapter.Dispose and daAdapter = Nothing ??????????? daAdapter is a DataAdapter
4
by: David Lozzi | last post by:
OK simple question. Whats the default value for an string() array? sub LoadStuff(byval one as integer, byval two as string, optional byval three() as string = ??) Its driving me nuts! ...
4
by: sophie | last post by:
Whats going on here: Read in a number as a string: scanf("%s", &number); number = 12345, for arguements sake Print it like this its fine:
7
by: Mike Barnard | last post by:
It's a simple test... VERY SIMPLE. But... In an external stlyesheet some attributes don't show. With the same styles cut and pasted to the test internally it works as expected. Anyone tell...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.