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 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 »
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.
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
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.
Machine key can be generated in IIS 7/ IIS 7.5 by following steps listed below 1. Open the IIS Manager. 2. Click on the Machine Key icon in the ASP.NET feature list as displayed below
While running your ASP.NET application, you must have seen, it is running on Integrated Web development environment. Visual Studio 2010 comes with two versions of Integrated Web Development environment which could run side by side. In case you run your ASP.NET application in VS 2010, you can have an option to choose between the two versions of Web… Read More »
To answer this question In a single statement, you can use HttpContext.Current.Items for very short term storage. By Short term storage means, this data is valid for a single HTTP Request. There are many confusion around regarding storing data in HttpContext.Current. Items and storing data in Session variable. In this post I am going to describe what are… Read More »