MyPage is a personalized page based on your interests.The page is customized to help you to find content that matters you the most.


I'm not curious

Enhance your ASP.NET performance following these relevant strategies

Published on 20 January 15
2
1

Being an ASP.NET application developer, it's quite natural for you to learn new ways to enhance the performance of your developed applications. Developing ASP.NET application isn't an uphill battle, provided you know about the ways to make your applications all the more competitive and robust. Performance tuning can be a tricky process, and especially when hundred and thousands of requests need to be handled by an application. So, in order to handle these requests efficiently, it is important to recognize bottlenecks and resolve them as quickly as possible.



With this in mind, we have compiled some strategies that you should take into account while going through custom ASP.NET development. The tips mentioned are easy to follow and will surely help you getting rid of the errors and performance related issues.


So, below are some significant tricks which you can follow to add a performance boost to your ASP.NET application.



1. Disable Session State


If you are no longer making use of session state simply disable it. By default it's on, but you can be turned off easily for some specific pages. This is how session can be disabled.


<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="WebApplication1.WebForm1"
EnableSessionState="false" %>

Also, to disable it across the web application simply go to setting<sessionState> mode value to off. 


2. HTTP Compression


Turning on HTTP compression is essential to get rid of extra space, file redundancy, and to ensure a clean output. The process is also important to reduce the size and weight of the file, which ultimately reduces bandwidth and page loading time.


You can configure HTTPCompression tag under system.webServer in ASP.NET web.config file or you can simply enable HTTPCompression feature in IIS. You can also compress your physical files with the help of GzipStream before it is actually utilized to production server.



3. Output Buffering


Make the most out of this feature, here you need to batch the entire work on the server, and then execute Respon.Flush method to get the desirable data. The strategy is great when it comes to chat back and forth with the server.


<%response.buffer=true%>

Then use:

<%response.flush=

true%>


5. Ignore Working On Server-side Validation


Try ignoring working on server-side, choose client-side instead. The reason is, server-side validation consumes a considerable amount of space, avoid frequent chat back and forth.

6. Turn Off Tracing


Tracing is a great feature but unless until it is turned off. If not, make sure you'll first edit web.config and then turn it off. To turn it off. The following code should be used to turn off tracing.


<configuration>
<system.web>
<trace enabled="false" pageOutput="false" />
<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true"/>
<compilation debug="false" />
</system.web>
</configuration>

7. Use Caching


ASP.NET features an extremely powerful caching mechanism that helps you combat performance related issues and ignores the client/server process. There are mainly three types of caching that ASP.NET features. When there is any static content in full pages then output caching is used. The caching stores the content on IIS. As soon as a page is being loaded, it will be loaded immediately from the ISS for some specific time. Further, Fragment Paging is used to store the part of the web pages.



8. Use CSS and Script Files


For those who own massive CSS files, then it is wise to split them on relevant parts and save them with different names. It is helpful in improving the page loading time.

9. CSS Based Layout


The web pages are generally handled by the CSS via div tags. This is helpful in increasing the page loading performance and also help you to inject a uniform standard guideline throughout the website. Also, it improves the future aspects of a website.



The above mentioned are some relevant tips that are sure to add an edge to your ASP.NET application. So, use any of them and enjoy the speed improvements you can make in your projects.



Related Posts:
View Comments (2)
Post a Comment

Please notify me the replies via email.

Important:
  • We hope the conversations that take place on MyTechLogy.com will be constructive and thought-provoking.
  • To ensure the quality of the discussion, our moderators may review/edit the comments for clarity and relevance.
  • Comments that are promotional, mean-spirited, or off-topic may be deleted per the moderators' judgment.
  1. 24 February 16
    0

    This is a nice article. If are looking for ASP.NET web developers then you may contact PixelCrayons- leading ASP.NET development company. http://www.pixelcrayons.com/web-development/asp-dot-net-development

  2. 24 January 15
    0

    Very informative..

You may also be interested in
 
Awards & Accolades for MyTechLogy
Winner of
REDHERRING
Top 100 Asia
Finalist at SiTF Awards 2014 under the category Best Social & Community Product
Finalist at HR Vendor of the Year 2015 Awards under the category Best Learning Management System
Finalist at HR Vendor of the Year 2015 Awards under the category Best Talent Management Software
Hidden Image Url

Back to Top