Tips to Improve ASP.NET Application Performance

Page 1

Softweb Solutions Inc. 2531 Technology Drive, Suite 312, Elgin, Illinois 60124 Toll-Free Number: 1-866-345-7638 Fax: 866-345-7638 Article Title: Tips to Improve ASP.NET Application Performance Keywords: Dot NET Application Development, .NET Technology Content: ASP.NET is a framework for building web applications developed by Microsoft Company. Originally, .NET technology is the successor to ASP which is also a software product of Microsoft. ASP and .NET together provide a platform to developers to design and develop dynamic web sites and web portals. There are certain things that should be considered at the time of building an application to increase the performance of the application. Turn Off the Session State – Disable the Session State if you don’t require it as disabling it will improve the overall performance. By default it is always on. It is also possible to switch it off for specific pages if you require it in some pages. Turn Off Tracing – Tracing adds a lot of overheads to the application in a production environment if not switched off. Though tracing is a useful feature for developers as it enables them to track the apps trace and the sequences, it can be turned off unless you want to monitor the trace logging. Avoid Server side Validation – It should be tried to use client side validation instead of Server side. Server side validation will consume all valuable resources on the servers which may affect the performance of the application. Avoid Exceptions – Exceptions are probably one of the heaviest resource consumers that slowdowns the web applications as well as the windows applications. It is better to avoid throwing exceptions and handling useless exceptions. Avoid Frequent Calls to Database – Calls made to the database can be expensive with respect to response time as well as resources. This can be avoided by using Batch Processing. Make minimum database calls as number of connections opened and not closed adequately can lead to slowdown the performance. Avoid using Recursive Functions and Nested Loops – To improve the performance of the application, always avoid using recursive functions and nested loops as they consume a lot of memory.


Turn Off the View State – In ASP.NET, by default controls will turn on the view state that will slow down the website. So if you are not using form postback, it’s better to turn it off. Use Caching – The page caching can be done for specific duration and until that duration the requests do not go to the server and are served from the cache. In case of static and dynamic pages in the app, Partial Caching [Fragment Caching] can be used by breaking the page into user controls. There are many other useful tips that may be helpful for improving the overall performance of the application. The speed improvements in the app will have a big impact on the user experience. Softweb Solutions specializes in delivering best Dot NET application development services. We have expert .NET developers to deliver quality solutions using all latest frameworks. For more information, contact us at info@softwebsolutions.com. Summary: Some useful tips and measures that may improve the overall performance of the application build on .NET are being discussed in this article.


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.