Board logo

subject: Tips To Improve Asp.net Application Performance [print this page]


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 dont 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, its 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.

by: Softweb Solutions Inc.




welcome to loan (http://www.yloan.com/) Powered by Discuz! 5.5.0