How to retrieve response time to each request made in my ASPX page?
-
Hi, How can I retrieve the list of all the request I made it to server with respect to time required to process time for it. For ex: In my page I am using some web services. I want to retrieve list of all the web services I am using and time required to process this request. How can I do this. Thanks & Regards Rock Star
-
Hi, How can I retrieve the list of all the request I made it to server with respect to time required to process time for it. For ex: In my page I am using some web services. I want to retrieve list of all the web services I am using and time required to process this request. How can I do this. Thanks & Regards Rock Star
If this is for performance troubleshoot then i.e. On that method which you want to troubleshoot add a Label called
lblResponseTime
on the page somewhere and do the following on your methodprotected void cmdSearch_Click(object sender, EventArgs e)
{
DateTime responseStart = DateTime.Now;// Your existing code for this method here... DateTime responseEnd = DateTime.Now; TimeSpan responseTime = responseEnd.Subtract(responseStart); lblResponseTime.Text = responseTime.Seconds + ":" + responseTime.Milliseconds;
}
this will calculate response time taken for that action.