Using ASP.NET AJAX Client Side Callback

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.

More



Creating Static Content Website in IIS 7

In this example we will configure a website in IIS 7 for serving static content as quickly and efficiently as possible. This website is designed to serve files like CSS, JavaScript, Images and HTML. This configuration will give you a result of 100/100 with Google Page Speed.

More



Imperatively Impersonate a User

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.

More



Using ASP.NET Control State

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.

More



Minify HTML for ASP.NET

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.

More



Configuring ASP.NET Session State

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.

More



Using HostingEnvironment Class

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.

More



Move ViewState to the page bottom

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.

More



How to compress ASP.NET ViewState

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.

More



How to create a file of a certain size

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

More



Next