Web Application vs Website Project

Discussion in 'ASP .Net' started by chint, Mar 1, 2009.

  1. chint

    chint Guest

    In VS there are two way to make asp.net pages, Web Application vs. Website
    Project. but whats the difference between Web Application vs. Website.

    also how to set pages to use inline code always instead of code behind, in a
    website project VS seems always add code behind pages.

    thanks for ur help.
     
    chint, Mar 1, 2009
    #1
    1. Advertising

  2. chint

    bruce barker Guest

    google this newsgroup for more info and arguments over which is better.

    generally, the web application builds the codebehind file into one dll,
    and page inherit from their codebehind class. web sites, compile the
    page and its code behind (if one) into one class via partial classes.

    in web application, any global declared in a code behind, can be
    referenced by any other page as the code behinds are built into one
    assembly. also to access form controls from the codebehind, vs builds a
    partial class where the controls as declared as protected (designer.cs).
    in a web site the page can see privates in the codebehind so no designer
    class is required (also findcontrol is required less).

    both web applications and websites can be complied into a single dll for
    deployment via aspnet_merge utility.

    to not have vs create a codebehind file in a web site, when you first
    create a page, uncheck "place code in seperate file". it will remember
    this setting.

    -- bruce


    chint wrote:
    > In VS there are two way to make asp.net pages, Web Application vs. Website
    > Project. but whats the difference between Web Application vs. Website.
    >
    > also how to set pages to use inline code always instead of code behind, in a
    > website project VS seems always add code behind pages.
    >
    > thanks for ur help.
    >
    >
     
    bruce barker, Mar 1, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rob Dob
    Replies:
    2
    Views:
    824
    Rob Dob
    May 23, 2006
  2. Ethan V
    Replies:
    2
    Views:
    4,992
    Ethan V
    Jun 25, 2006
  3. John Dalberg
    Replies:
    1
    Views:
    519
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Mar 28, 2007
  4. ITistic
    Replies:
    2
    Views:
    431
    ITistic
    Aug 21, 2007
  5. Replies:
    0
    Views:
    495
Loading...

Share This Page