Tag Archives: Web



Raising Server side event from JavaScript in ASP.NET (Tweaking the existing bits)

Well, knowing internal structure of an ASP.NET event system can always be an element of fun and interests. Recently I came across to a requirement to generate a server side event on a page directly from Javascript. There are a couple of approaches available with the existing models (like ICallbackEventHandler etc) but these will put […]

Releasing Single / Multiple Files To Pre Compiled ASP.net Web Site

We most the time run into the issue where we need to release a patch which requires a change in one or multiple code behind files and since your site is compiled, you are put into the state that you have to do a deployment instead of releasing those files. But, fortunately you can do […]

Using Session with in HTTPHandler

In this tip I am going to discuss how you can use Session with in your custom HTTPHandler.  By default if you try to read or write anything related with Session, you will get an NullReferenceException. If you want to plug Session with in your HttpHandler you have to implement the  marker Interface (Interfaces with […]

Few important tips that you should know while using ASP.NET Session

While working with ASP.NET web application you must be familiar with one of most important state management technique “Session”. If you want to do a quick refresh or want to know some thing more, please go ahead and read one of my article “Exploring Session in ASP.NET” published at Code Project. In this post I […]

How To Create Session-less Controller in MVC3

How to manage the controller’s session state? Simply we can decorate the controller class with “SessionState” attribute. [SessionState()] attribute accepts SessionStateBehaviour enumeration. SessionStateBehaviour enumeration has the following constants. SessionStateBehavior.Default – ASP.NET default logic is used to determine the session state behavior for the request. SessionStateBehavior.Required – Full read-write session state behavior is enabled for the […]

How to remove ViewState from ASP.NET web page and save in Session using SessionPageStatePersister

By default ViewState is saved inside the web page. In ASP.NET using SessionPageStatePersister ViewState can be saved inside Session instead. This helps in securing the ViewState as well as reducing the size of the web page