Live Chat Icon For mobile
Live Chat Icon

How to stamp Date-Time on all the pages in an application when requested

Platform: ASP.NET| Category: Miscellaneous

Use the global.asax file and listen to the PostRequestHandlerExecute event of the Global object.

In the handler Global_PostRequestHandlerExecute write the following code
VB.NET


Response.Write('This page is updated on ' & DateTime.Now.ToString())

Response.Write('This page is updated on ' + DateTime.Now.ToString());

Share with

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.