Why ASP.NET?: Writing dynamic, high-performance Web applications has never been easier ASP.NET combines unprecedented developer productivity with performance, reliability, and deployment.
Migrating to ASP.NET: Key Considerations: Although the designers of Microsoft® ASP.NET have done an excellent job in preserving backward compatibility with ASP applications, there are a few key items you need to be aware of before undertaking the effort of moving a Web application from ASP to ASP.NET. A solid understanding of the technologies that have changed or been introduced with the .NET platform and ASP.NET will go a long way in making this process a whole lot easier.
Build an XML Serialized Object: Almost every Web application needs to store global configuration settings. Traditional Active Server Pages (ASP) Web applications often stored this data in a database. However, database storage has drawbacks: It's terribly inefficient to query the database each time you need to retrieve a setting, and some data, such as your database connection string, isn't appropriate for storage in a database. Many developers try to get around these two caveats by storing settings in Application variables initialized in the global.asa file. The problem with this approach is that changing the value of one of these Application variables in the global.asa file forces the entire ASP application to reload, leading to periods of downtime. Microsoft's .NET Framework offers a better alternative to the preceding methods. Using the objects contained in the System.XML.Serialization namespace, you can create a serialized configuration object that you can persist and de-persist to and from an XML file on demand. Even better, you can use ASP.NET's new caching features to store the XML source for your configuration object in memory, resulting in lightning-fast access to your Web application's configuration settings.
web.config: web.config is a XML-based configuration file. A web.config can appear in any directory on an ASP.NET Web application server. Said this, if you have a web.config file in the directory "c:\inetpub\wwwroot", then the settings specified in the web.config is applicable to all the subdirectories under wwwroot. Each sub-directory can have its own web.config file and it will overwrite the settings of the web.config file in the parent directory. <appSettings> can be declared at the machine, site, application and subdirectory level. Include all the custom settings for your application in this section. Appsettings tag contains two attributes viz; key and value.
Using xml web control: Now a days use of XML is increasing quickly. Many times data that you want to display can be stored in XML files rather than statically putting it in HTML pages. Such XML data can be transformed to HTML by applying XSL style sheet to it. In traditional ASP, we used XSL Transform objects to achieve that. ASP.NET makes displaying XML documents in browser much easy via a special web control called XML control.
Create Localizable Web User Controls: As the Internet reaches more people worldwide, applications need to respond to cultural differences among users or consumers. You can achieve this by designing and developing the proper building blocks that adapt to such cultural differences. I'll walk you through the steps required to create a Date Picker Web control that supports different cultural settings.
Working with Complex Data Types in an XML Web Service - Part 1: XML Web Services enable the exchange of complex data types, serialized as XML. Complex data types, such as ADO.NET DataSets and custom classes can be serialized as XML and either sent to the XML Web Service as an input argument, or returned from the XML Web Service as the result. In this article we will build the beginning of an XML Web Service, which we will finish in next week's article, when we will also build a consumer Web application. The XML Web Service will have WebMethods for returning a DataSet and custom classes serialized as XML. For the DataSet, the .NET Framework will handle the formatting of the XML document that represents the DataSet; for the custom classes we will use classes from the System.Xml.Serialization namespace to define the XML format.
How to Enable Smart Navigation: In Web applications whenever a post back is done the entire page will be completely redrawn. The redrawing of the page will cause the screen to 'flicker' and the page will scroll to the top resulting in a poor user experience. ASP.NET has a cool feature called SmartNavigation, which solves these problems. SmartNavigation is a great feature which makes Web applications much more user friendly akin to the traditional windows application. The main advantages of using SmartNavigation are:
dtSearch Case Study - Application Plus & VersusLaw: This totally data driven web solution dynamically assigns indexes to the jurisdiction selected and also allows specific date field searching and the selection of a specified number of returned results. Integrating ASP.NET and ADO.NET with the dtSearch search engine, a smooth web interface was created that is both efficient and user-friendly..
|