Tag Archives: ASP.NET

Using Session with in HTTPHandler

By | May 7, 2011

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 no methods are… Read More »

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

By | May 3, 2011

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 am going to… Read More »

How to store custom objects in web.config ?

By | April 30, 2011

In this Post, I am going to discuss about web.config. Normally in our daily life, we used to have some data in appSettings section of web.config and read it when required. That is in string form. But there are lot more than this. We can update the data in web.config programmatically as well . Now another main point… Read More »

How To Create Session-less Controller in MVC3

By | April 29, 2011

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 request. SessionStateBehavior.ReadOnly –… Read More »

How To Scroll To Validation Summary ?

By | April 29, 2011

ASP.net by default calls the function window.scrollTo(0,0) after the validation failure from ASP.net validators but not always we have the validation summary control placed at the top. There are instances where we need to place validation summary at some other location but by doing this, instead the user being scrolled to see the validation error, he will always see the top of the page.

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

By | April 28, 2011

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

Important counter sets for monitoring ASP.NET performance using Perfmon Tool

By | April 28, 2011

For Any ASP.NET application, monitoring performance is an important job. Performance Monitor tool having some nice features that helps us to monitor ASP.NET Application performance in a better way.In this Tips I  discuss four important counter sets that are very useful in monitoring ASP.NET performance.