Last post Aug 24, 2014 11:10 PM by Summer - MSFT
Aug 22, 2014 08:29 PM|ssramvinay.83|LINK
How to improve performance of a method which is taking long time or reasons of taking long time to execution of a method in C#?Please note we should not touch any backend like sql server.
Aug 22, 2014 08:38 PM|gerrylowry|LINK
ssramvinay.8... welcome to forums.asp.net
sorry, imho, your question is way too vague ... this may help you:
Quick answer: one generally needs to look at the code closely.
Aug 24, 2014 11:59 AM|arindamnayak|LINK
If it is DB oriented thing, please run that proc in SQL console, note the time, and if it is same as method call time, then you need to tweak that procedure, if it is not, i.e. no DB thing, then go for async, await pattern.
Aug 24, 2014 11:10 PM|Summer - MSFT|LINK
According to your description, you want to know how to How to improve performance in your web pages.
please refer to these suggestions that i provided, hope it can be helpful to you.
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="WebApplication1.WebForm1"
You can also disable it across the application in the web.config by setting the <sessionState> mode value to Off.
<trace enabled="false" pageOutput="false" />
<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true"/>
<compilation debug="false" />
More information about how to improve the performance, please refer to the link below:
if you have any other questions, please feel free to post in this forum.