Because session state cannot be shared across ASP and ASP.NET, the session object in ASP needs to be replaced with the ASP.NET session object. This isn't much of a task because most of the properties and methods of the ASP session object are supported in .NET. Caching in ASP.NET is very different from that in traditional ASP. ASP.NET provides a cache object that is a key-value pair object, similar to the session and application objects. It also provides a means to cache the entire response by way of the OutputCache directive added at the start of a page. Partial or fragment caching is also made possible by user controls. All of the six intrinsic objects in ASP are supported in ASP.NET with some differences in properties, events, or methods of the objects. We list all the properties, events, and methods of ASP objects and whether they are supported, changed, or not supported in .NET. The structural and language changes involve changes in syntax and the manner in which the page is presented. We have covered all the important functionalities in ASP that can be migrated to ASP.NET across two chapters. We have provided code examples for each functionality in ASP and its equivalent in ASP.NET. |