-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: Swapnil_B1
Message 1 in Discussion
/App_Code Directory
The final major change to the coding model is a direct response to a
common problem in ASP.NET. Most Web applications require one or more support
classes. In ASP.NET, the preferred method was to create a separate project for
support classes and then add a reference to the support project within your Web
application. Even if you didn't create a separate project, you still had to
create a reference to whatever namespace you used within your own application.
Although having a separate project made sense for larger and more complicated
applications, it was often painful for developers who only needed one or two
simple classes.
ASP.NET 2.0 introduces a new way of adding support code. The
/app_code directory is a special directory that is automatically compiled and
referenced by your ASP.NET application. That is, any classes you place inside
the /app_code directory are automatically accessible from any ASPX page in your
application. Visual Studio 2005 and the ASP.NET compiler both automatically
create an assembly from these classes and place a reference to the assembly in
your Web application. Unlike ASP.NET 1.x, which required these files to be
precompiled to the Bin directory, any code files in the App_Code directory will
be dynamically compiled at runtime and made available to the application. It is
possible to place files of more than one language under the App_Code directory,
provided they are partitioned in subdirectories (registered with a particular
language in Web.config).
In total, ASP.NET implements seven protected application directories
to organize and maintain the contents and data for each of your applications:
a) /Bin Reference Assemblies
b) /app_code Shared Application Code
c) /app_globalsource - Common Resource file
d) /app_localresource - Localized resource
e) /app_webreferences - Links to web services
f) /app_data Local Database for membership, web parts, etc.
g) /app_browser Browser specific settings
h) /app_themes Theme Settings
Most of these directories are protected against web access at the
ISAPI layer linking ASP.NET to IIS. That is, users can't navigate into a
special directory unless it is absolutely necessary for them to do so (e.g.
app_themes is open because it contains html layout files).
Swapnil (Swaps)
http://swapsnet.spaces.live.com/
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]