Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Web Site or Web Application (VS 2008)

Reply
Thread Tools

Web Site or Web Application (VS 2008)

 
 
Dan
Guest
Posts: n/a
 
      07-15-2009
Hi ASP Gurus,
I am about to write some asp pages, but got confused to pick between Web
Site or Web Application.
Can someone please explain some major differences between these two.

I'll appreciate any help/suggestion/advice I get on this topic.

Thanks, Dan


 
Reply With Quote
 
 
 
 
sloan
Guest
Posts: n/a
 
      07-15-2009
It's been discussed a billion times.

Google or Bing it.


"Dan" <> wrote in message
news:...
> Hi ASP Gurus,
> I am about to write some asp pages, but got confused to pick between Web
> Site or Web Application.
> Can someone please explain some major differences between these two.
>
> I'll appreciate any help/suggestion/advice I get on this topic.
>
> Thanks, Dan
>



 
Reply With Quote
 
 
 
 
sloan
Guest
Posts: n/a
 
      07-15-2009
http://www.google.com/search?hl=en&q...&aq=f&oq=&aqi=


"sloan" <> wrote in message
news:...
> It's been discussed a billion times.
>
> Google or Bing it.
>
>
> "Dan" <> wrote in message
> news:...
>> Hi ASP Gurus,
>> I am about to write some asp pages, but got confused to pick between Web
>> Site or Web Application.
>> Can someone please explain some major differences between these two.
>>
>> I'll appreciate any help/suggestion/advice I get on this topic.
>>
>> Thanks, Dan
>>

>
>



 
Reply With Quote
 
Gregory A. Beamer
Guest
Posts: n/a
 
      07-15-2009
"Dan" <> wrote in
news::

> Hi ASP Gurus,
> I am about to write some asp pages, but got confused to pick between
> Web Site or Web Application.
> Can someone please explain some major differences between these two.
>
> I'll appreciate any help/suggestion/advice I get on this topic.



I will take a different direction from what sloan has taken, although I
do love this site.

http://snurl.com/nb453


In general, use the web application template.

In early 2.0 (and perhaps beyond), the only exception I know of is when
you want to use custom Profiles, as you can end up having to rebuild the
Profile when you use a web application template. It was not a huge
thing, once you learned how to manually clear out your ASP.NET temporary
directory (often including rebooting IIS), but it was a major pain. Not
sure if it is fixed or not, but since I use custom Profile providers, I
don't really care (when I use profile at all).

On the converse side, if you are adding custom classes, the web site
template can give you some heartache.

In general, the difference is that one compiles and the other does not.
If you like to change a single page on the fly, it is "easier" with a
web app template. As an xcopy deploy does not take but a few seconds, it
is not a major benefit for me.

One benefit to web site is mixing code, but this is not as much of a
benefit any more, as you can do it in both (on the page level). If you
like to have one page in VB, one in C#, another in J# and another in
C++, then you will love this feature. If you are "normal", this is
probably not something you will cherish.

The pain with the web site is when you put code in app_code and try to
use it, but I am personally against putting anything in app code, as
application code should not be placed in the UI ... NEVER. Okay, maybe
not NEVER, as some might not want to build a separate WEB.UI library.


With a web application, you can deploy everything as assemblies. Not
completely true, as .NET will build pointer files with an @ Page
directive pointing to the entry point in the compiled code. This means
you can obfuscate your web app and not give away it's secrets. This is
really only a measure when you build a web app for someone who is
licensing the code, which is rare, but it is kewl none-the-less, even if
it is hardly practical for most of us.

In summary
1. Web site - page compiled on fly
2. Web app - application compiled

Oversimplification, but it works here.


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Reply With Quote
 
Stan
Guest
Posts: n/a
 
      07-15-2009
On 15 July, 21:14, "Dan" <D...@nospaml.com> wrote:
> Hi ASP Gurus,
> I am about to write some asp pages, but got confused to pick between Web
> Site or Web Application.
> Can someone please explain some major differences between these two.
>
> I'll appreciate any help/suggestion/advice I get on this topic.
>
> Thanks, Dan


Essentially a web application is executed on the server whereas a web
site is handled by the client only. The most common reason for active
server processing is to access a database, which cannot be done from
the client.

HTH
 
Reply With Quote
 
Jeremy S.
Guest
Posts: n/a
 
      07-16-2009

RE:
<< Essentially a web application is executed on the server whereas a web
site is handled by the client only >>

You are completely wrong about this.

Both Web applications and Web sites are compiled and served from the server.
Neither are "handled by the client only" - in fact that is a non sensical
statement as both Web sites and Web applications render plain old HTML + css
+ JavaScript or VBScript etc to the client/browser. Browsers know absolutely
nothing about ASP.NET Web sites or Web applications or any other server-side
technology.




 
Reply With Quote
 
Dan
Guest
Posts: n/a
 
      07-16-2009
Thanks Gregory for your detailed explanation.
Things are clear now.

Thanks again.
Dan



"Gregory A. Beamer" <> wrote in message
news:Xns9C49AB9902B94gbworld@207.46.248.16...
> "Dan" <> wrote in
> news::
>
>> Hi ASP Gurus,
>> I am about to write some asp pages, but got confused to pick between
>> Web Site or Web Application.
>> Can someone please explain some major differences between these two.
>>
>> I'll appreciate any help/suggestion/advice I get on this topic.

>
>
> I will take a different direction from what sloan has taken, although I
> do love this site.
>
> http://snurl.com/nb453
>
>
> In general, use the web application template.
>
> In early 2.0 (and perhaps beyond), the only exception I know of is when
> you want to use custom Profiles, as you can end up having to rebuild the
> Profile when you use a web application template. It was not a huge
> thing, once you learned how to manually clear out your ASP.NET temporary
> directory (often including rebooting IIS), but it was a major pain. Not
> sure if it is fixed or not, but since I use custom Profile providers, I
> don't really care (when I use profile at all).
>
> On the converse side, if you are adding custom classes, the web site
> template can give you some heartache.
>
> In general, the difference is that one compiles and the other does not.
> If you like to change a single page on the fly, it is "easier" with a
> web app template. As an xcopy deploy does not take but a few seconds, it
> is not a major benefit for me.
>
> One benefit to web site is mixing code, but this is not as much of a
> benefit any more, as you can do it in both (on the page level). If you
> like to have one page in VB, one in C#, another in J# and another in
> C++, then you will love this feature. If you are "normal", this is
> probably not something you will cherish.
>
> The pain with the web site is when you put code in app_code and try to
> use it, but I am personally against putting anything in app code, as
> application code should not be placed in the UI ... NEVER. Okay, maybe
> not NEVER, as some might not want to build a separate WEB.UI library.
>
>
> With a web application, you can deploy everything as assemblies. Not
> completely true, as .NET will build pointer files with an @ Page
> directive pointing to the entry point in the compiled code. This means
> you can obfuscate your web app and not give away it's secrets. This is
> really only a measure when you build a web app for someone who is
> licensing the code, which is rare, but it is kewl none-the-less, even if
> it is hardly practical for most of us.
>
> In summary
> 1. Web site - page compiled on fly
> 2. Web app - application compiled
>
> Oversimplification, but it works here.
>
>
> --
> Gregory A. Beamer
> MVP; MCP: +I, SE, SD, DBA
>
> Twitter: @gbworld
> Blog: http://gregorybeamer.spaces.live.com
>
> *******************************************
> | Think outside the box! |
> *******************************************



 
Reply With Quote
 
Gregory A. Beamer
Guest
Posts: n/a
 
      07-16-2009
Stan <> wrote in news:d67acc05-6144-46cc-88c1-
:

> Essentially a web application is executed on the server whereas a web
> site is handled by the client only. The most common reason for active
> server processing is to access a database, which cannot be done from
> the client.


This might work if you are talking a general HTML = web site and PHP,
ASP.NET, JSP, etc = web application.

In this case, the OP was asking about the web site template and the web
application template in ASP.NET, both of which have server side code. The
simple difference is one can be compiled into assemblies and the other is
compiled on the fly when a page is hit and does not have an assembly bin
for its own code (both can reference other assemblies).


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
List of free web site design, web site backgrounds, web site layoutsresources cyber XML 1 12-25-2007 11:48 PM
Free web site design, web site backgrounds, web site layoutsresources cyber HTML 0 12-24-2007 04:26 PM
List of free web site design, web site backgrounds, web site layoutsresources cyber HTML 0 12-21-2007 03:47 PM
List of free web site design, web site backgrounds, web site layoutsweb sites cyber HTML 1 12-19-2007 09:07 AM
Converting Web Site to Web Application (AJAX web service goes missing) Lloyd Sheen ASP .Net 1 11-15-2007 05:46 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57