How to optimize asp dot net application

Page 1

How To Optimize Asp.Net Application ?

August 1, 2016.net training, Computer Training.net certification in pune, .net classes, .net courses, .net courses in pune, .net training institute pune, ASP.net courses In this article, we will walk via some performance improvement techniques in ASP.NET Web Applications. It’s universal that customer expects the good performance of a web application. Basically, largescale Web applications are deployed to load-balancing servers to share traffic evenly across a number of application servers. Additional application servers are added without making any further changes to the application. The application server might enhance Web application performance; however, there are ways to improve performance on the developer side as well. You can follow certain optimization techniques when you code that can reduce a lot of performance issues. It is essential to know which parts code or code parts can be optimized, and how you can measure improvements in performance. Here we share a number of optimization techniques that you can use: Discard objects from the caller method than in the called method. Use connection pooling such that the connections can be re-used during requirement of future requests to the database. • • • • • • • • •

Delete white spaces and extra tags to reduce the size of your pages. Make limited use of graphics and consider using compressed graphics. Reduce page load times by minimizing the scripts. Use cascading style sheets to avoid repeated sending of the same formatting directives to the client. Use short control names because they generate unique HTMLID names. Minimize redundant processing by using Page.IsPostBack . Use for each loop instead of a for loop if possible. Avoid using ViewState to facilitate faster page loads. Cache the Web pages or a portion if the page is large. Use data caching for improving the application performance instead of fetching data from a file or database. Data is stored in the memory of Datasets hence write efficient SQL queries or procedures that fetch only the required information.


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.