Page 152 - DCAP312_WEB_TECHNOLOGIES_II
P. 152
Web Technologies-II
Notes Introduction
ASP.NET is above the subsequently version of Active Server Pages (ASP); it provides a combined
Web development model that includes the services required for developers to build enterprise-
class Web application. While ASP.NET is mostly syntax like-minded with ASP, it also provides
a new programming replica and transportation for more scalable and stable applications that
help provide greater protection. You can feel free to augment your existing ASP applications
by incrementally adding ASP.NET functionality to them.ASP.NET is a compiled, .NET-based
environment; you can author applications in any .NET compatible language, including Visual
Basic .NET, C#, and JScript .NET. Additionally, the entire .NET Framework is available to any
ASP.NET application. Developers can easily access the benefits of these technologies, which
include the managed common language runtime environment, type safety, inheritance, and so
on.ASP.NET has been designed to work seamlessly with WYSIWYG HTML editors and other
programming tools, including Microsoft Visual Studio .NET. Not only does this make Web
development easier, but it also provides all the benefits that these tools have to offer, including
a GUI that developers can use to drop server controls onto a Web page and fully integrated
debugging support. Developers can use Web Forms or XML Web services when creating an
ASP.NET application, or combine these in any way they see fit. Each is supported by the same
infrastructure that allows you to use authentication schemes; cache frequently used data, or
customizes your application’s configuration, to name only a few possibilities.
• Web Forms allow you to build authoritative forms-based Web pages. When structure
these pages, you can use ASP.NET wine waiter controls to create common UI elements,
and program them for common tasks. These controls allow you to rapidly build a Web
Form out of reusable built-in or custom components, simplifying the code of a page.
• An XML Web service provides the means to access server functionality remotely. Using
XML Web services, businesses can expose programmatic interfaces to their data or business
logic, which in turn can be obtained and manipulated by client and server applications.
XML Web services enable the exchange of data in client-server or server-server scenarios,
using standards like HTTP and XML messaging to move data across firewalls. XML Web
services are not tied to a particular component technology or object-calling convention.
As a result, programs written in any language, using any component model, and running
on any operating system can access XML Web services.
• Each of these models can take full advantage of all ASP.NET features, as well as the power
of the .NET Framework and .NET Framework common language runtime. These features
and how you can use them are outlined as follows:
If you have ASP development skills, the new ASP.NET programming model will seem very
familiar to you. However, the ASP.NET object model has changed significantly from ASP,
making it more structured and object-oriented. Unfortunately this means that ASP.NET is not
fully backward compatible; almost all existing ASP pages will have to be modified to some extent
in order to run under ASP.NET. In addition, major changes to Visual Basic .NET means that
existing ASP pages written with Visual Basic Scripting Edition typically will not port directly
to ASP.NET. In most cases, though, the necessary changes will involve only a few lines of code.
Accessing databases from ASP.NET applications is an often-used technique for displaying data
to Web site visitors. ASP.NET makes it easier than ever to access databases for this purpose. It
also allows you to manage the database from your code.
ASP.NET provides a simple model that enables Web developers to write logic that runs at the
application level. Developers can write this code in the Global.asax text file or in a compiled
class deployed as an assembly. This logic can include application-level events, but developers
can easily extend this model to suit the needs of their Web application.
ASP.NET provides easy-to-use application and session-state facilities that are familiar to ASP
developers and are readily compatible with all other .NET Framework APIs.
146 LOVELY PROFESSIONAL UNIVERSITY