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 generate a X.509 certificate

In this example we will generate a X.509 certificate using the Certificate Creation tool. This tool is for testing purposes only and the certificates produced are not meant for use within a production application. To access the tool, use the Visual Studio Command Prompt.

More



Using MultiView and View WebControls

In this example we will build a sign up process using the MultiView and View WebControls; using a shared ValidationSummary across all the View’s.

More



Using CustomValidator Control

In this example we will use the CustomValidator controls client-side and server-side abilities to perform validation on the password and email form values. The client-side javascript will perform some basic checks on the password, like length and against a reserved word list. The server-side validation will check the email address against already registered emails.

More



Literal WebControl Rendering Modes

The Literal WebControl is a basic yet very useful control for displaying content with the minimum html produced. The nature of this control is to render the text input directly to the html output response, this could allow a malicious user to input some client script, which would then run.

More



Panel WebControl Less Known Features

In this example I want to show you some less used features of one of the basic WebControls, the Panel Control.

More



Next

Prev