Tips to improve performance of ASP.Net Web Application

1) Turn off Tracing unless until required Tracing is one of the wonderful features which enable us to track the application’s trace and the sequences. However, again it is useful only for developers and you can set this to “false” unless you require to monitor the trace logging. How it affects performance: Enabling tracing adds performance overhead and might expose private information, so it should be enabled only while an application is being actively analyzed. Solution: When not needed, tracing can be turned off using <trace enabled=”false” requestLimit=”10” pageoutput=”false” traceMode=”SortByTime” localOnly=”true”> 2) Turn off Session State, if not required One … Click here to continue…..

Run time dynamic controls in

I don’t understand that most of the developer, why they use stringbuilder to generate run time controls on page whether they know that in this case they can’t get user inserted values by using stringbuilder. So i suggest to all developers that don’t use stringbuilder for this. Please do this by using run time generating controls as per given given by example: On the aspx page use a panel for showing controls in a proper way like this and a button for saving data in

  On the code behind aspx.cs page, you can generate all dynamic controls on … Click here to continue…..

State Management Questions

What is View State? View State allows the state of objects (serializable) to be stored in a hidden field on the page. View State is transported to the client and back to the server, and is not stored on the server or any other external source. View State is used the retain the state of server-side objects between postabacks. What is the lifespan for items stored in View State? Item stored in View State exist for the life of the current page. This includes post backs (to the same page). What does the “EnableViewState” property do? Why would I want … Click here to continue…..