In this example we are going to create a Client-side Callback with ASP.NET AJAX by implementing the RaiseCallbackEvent and GetCallbackResult methods of the the ICallbackEventHandler interface.
In this example we will Imperatively Impersonate a User so that we can run a few lines of code and then undo the Impersonation so that we are running using the standard ASP.NET permissions.
In this example we will create a Server Control and use the Control State to store and retrieve values. It is better practice to use Control State when creating custom control rather than using Page ViewState, because if Page ViewState is disabled it would break your control where as Control State cannot be disabled. This custom control is used to display an address.
In this example we will Minify the HTML produced by ASP.NET by using a HttpModule to remove all White spaces from the response stream.
In this example we will setup the different modes of session state management that ASP.NET supports. The fastest method is InProc, but if the worker process is recycled all information is lost. You configure a web applications state management within the web.config using the sessionState element.
Each managed website application has a single static instance of the HostingEnvironment class which provides access to application management and services functions. In this example we will explore a few of the members that might come in handy.
In this example we will move the ViewState from the top of the page to the bottom. This is believed to help search engines read the move important content of the page, rather that have to deal with all the encoded information.
In this example I will show you how to compress ASP.NET web page ViewState. The ViewState is used to save page state between requests, if you have a page with a large amount of controls you could end up with a bloated ViewState. We will create an abstract class that can be reused within your application.
In this example I will show you how to create a file of a fixed size. This can be useful if you require files of fixed sizes for testing purposes