ASP.NET

Preventing browser from cachning ASPX or ASCX content

Caching content by the browsers can be sometimes very annoying. I had problems with it,  mostly when I was developing some popup modal dialogs which showed aspx or ascx controls.

Thankfully, there is very simple solution how to disable content caching. You achieve it in two ways:

(continue reading…)


Custom Exceptions Handling

In this post I’ll show how I handle exceptions in the projects I develop.

Some time ago I wrote a simple class which turned out to be very useful in exception handling and displaying it to the user. To use it You have to create a new instance of it and add it to the controls collection on the page. Then You can just add exceptions, through the appropriate method, which will be rendered as a HTML table. The class uses Render event to check if any exception has been added, if so the class renders appropriate HTML code which is shown to the user.

(continue reading…)


Copyright © 1996-2010 Tomasz Rabiński | zavaz Blog. All rights reserved.
Jarrah theme by Templates Next | Powered by WordPress