Page 145 - DCAP312_WEB_TECHNOLOGIES_II
P. 145
Unit 7: Advanced ASP.NET
methods of the visitor. The resulting HTML code is sent to the client. After the request has Notes
been processed, the instance of the page class is discarded and with it the entire control tree.
Other files Other file extensions associated with different versions of ASP.NET include: asax
Global.asax, used for application-level logic and event handling ascx Web UserControls: custom
controls to be placed onto web pages. ashx custom HTTP handlers asmx web service pages.
axd when enabled in web.config requesting trace.axd outputs application-level tracing. Also
used for the special webresource axd handler which allows control/component developers to
package a component/control complete with images, script, css etc. for deployment in a single file
(an ‘assembly’) browser browser capabilities files stored in XML format; introduced in version 3.0
ASP.NET 2 includes many of these by default, to support common web browsers. These specify
which browsers have which capabilities, so that ASP.NET 2 can automatically customize and
optimize its output accordingly. Special .browser files are available for free download to handle,
for instance, the W3C Validator, so that it properly shows standards-compliant pages as being
standards-compliant. Replaces the harder-to-use BrowserCaps section that was in machine.config
and could be overridden in web.config in ASP.NET 1.x. config web.config is the only file in a
specific Web application to use this extension by default (machine.config similarly affects the
entire Web server and all applications on it), however ASP.NET provides facilities to create and
consume other config files. These are stored in XML format, so as to allow configuration changes
to be made with simplicity. cs/vb In ASP.NET 2 any cs/vb files placed inside the App_Code
folder are dynamically compiled and available to the whole application. master Master Pages;
introduced in version 2.0 sitemap sitemap configuration files skin theme skin files. resx resource
files for internationalization and localization. Resource files can be global (e.g. messages) or
"local" which means specific for a single aspx or ascx or file.
Write a Transform to Change the Environment and Logging Connection Strings
in the Staging Web.config.
Although ASP.NET applications are automatically updated to use the installing
version of ASP.NET if the preceding conditions are met, custom configuration
settings in the current Machine.config file are not transferred to the installing
Machine.config file. If your application uses custom configuration settings, be
sure to either manually update the new Machine.config file or use the ASP.
NET IIS Registration tool (Aspnet_regiis.exe) to remap the application to the
previous version of ASP.NET.
7.4 New Features in ASP.NET 3.5
Following features are added in ASP.NET 3.5:
ASP.NET AJAX
In ASP.NET 2.0, ASP.NET AJAX was used as an extension to it. We had to download the
extensions and install it. However in ASP.NET 3.5, ASP.NET AJAX is integrated into the .NET
Framework, thereby making the process of building cool user interfaces easier and intuitive.
The integration between web parts and the update panel is much smoother. Another noticeable
feature is that we can now add ASP.NET AJAX Control Extenders to the toolbox in VS2008.
Even though this is an IDE specific feature, if it deserves a mention over here for developers,
who had to add extenders using source view earlier. It is also worth noting that Windows
Communication Foundation (WCF) now supports JSON along with other standard protocols
like SOAP, RSS and POX.
New Controls
The List View and Data Pager are new controls added along with a new data source control
called the LinqDataSource.
LOVELY PROFESSIONAL UNIVERSITY 139