Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 834095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:37:24+00:00 2026-05-15T04:37:24+00:00

commonly on say PHP or other web frameworks getting the total response time is

  • 0

commonly on say PHP or other web frameworks getting the total response time is easy, just start the timer at the top of the file and stop it at the end.

In ASP.Net there is the whole Page Lifecycle bit though so I’m not sure how to do this. I would like for this response time recording to take place in a master page and the response time show up in the footer of pages. What would be the best way of doing this? Is there something built in to ASP.Net for it? Is it even possible to include the OnRender time?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T04:37:25+00:00Added an answer on May 15, 2026 at 4:37 am

    You can do it on the Global.asax, take a look at this article

    void Application_BeginRequest(object sender, EventArgs e)
    {
    HttpContext.Current.Items["renderStartTime"] = DateTime.Now;
    }
    
    void Application_EndRequest(object sender, EventArgs e)
    {
    DateTime start = (DateTime) HttpContext.Current.Items["renderStartTime"];
    TimeSpan renderTime = DateTime.Now - start;
    HttpContext.Current.Response.Write("<!-- Render Time: " + renderTime + " -->");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 511k
  • Answers 511k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I'll try to point you in the right direction, but… May 16, 2026 at 5:12 pm
  • Editorial Team
    Editorial Team added an answer It will probably look different for different databases, but in… May 16, 2026 at 5:12 pm
  • Editorial Team
    Editorial Team added an answer My understanding is that Perlin noise is designed so all… May 16, 2026 at 5:12 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Commonly, a website has a menu bar with links to different pages of the
So, I've just started working with a new Joomla site, and something we've added
Static variable gotcha in php I am from Java background and have switched to
I'm beginning to learn some Hadoop/MapReduce, coming mostly from a PHP background, with a
Let's say you have two instances of the same bean type, and you'd like
In C++, say you want to declare a global variable to be used by
It is a commonly held belief that the the C++ standard library is not
Take a commonly used binary hash function - for example, SHA-256. As the name
At work we have a very large code-base that we commonly export for a
I need to find a list of commonly mistyped keys on a keyboard for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.