Hi, what is diference between:
File -New Web Site
and
File -New Project -VB/C# -Web Application
??????
VS 2005
Thanks! 7 2274
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.co m.brwrote in message
news:u2******** ******@TK2MSFTN GP03.phx.gbl...
Hi, what is diference between:
File -New Web Site
and
File -New Project -VB/C# -Web Application
??????
VS 2005
Thanks!
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.
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******** ******@TK2MSFTN GP06.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.
So, what you all recommends?
WebApp ou WebSite ?
"Mark Fitzpatrick" <ma******@fitzm e.comescreveu na mensagem
news:ep******** ******@TK2MSFTN GP04.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******** ******@TK2MSFTN GP06.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.
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.publi c.dotnet.framew ork.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!
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******** ******@TK2MSFTN GP06.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.
"Peter Bromberg [C# MVP]" <pb*******@yaho o.yohohhoandabo ttleofrum.comwr ote
in message news:6B******** *************** ***********@mic rosoft.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 ($cursor != TRUE)
die("Unable to open a cursor, exiting...\n");
|
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, Category, Contact_Name,
Contact_Title, Address_1, Address_2, City, County, Post_Code, Phone_1,
Phone_2, Fax, Web_URL, email_Address, Delivery, Notes)"
SQL = SQL & " VALUES('" & Request.Form("Company_Name") & "','" &
|
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)
Case "Authenticated"
Case "CI_CODE"
Case "organisation_description"
Case "location_description"
|
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 ftp://localhost/
Then I discovered that the WebRequest class has a RegisterPrefix
method which takes a string as prefix and it needs a
System.Net.IWebRequestCreate but how is such one made ?
|
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 .
Whats a good method to get the effect .
| |
by: Bruno Piovan |
last post by:
Hi,
what is the diference between
daAdapter.Dispose
and
daAdapter = Nothing
???????????
daAdapter is a DataAdapter
|
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!
Thanks!
--
|
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:
|
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 me why? Its probably sooooooo obvious, but it is 1.19 am!
Thanks.
www.thunderin.co.uk/
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |