Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 335
  • Last Modified:

Get Client Date Using ASP.Net

I want to get the client's date and time by running some JavaScript from Global.asax then storing the results in a cookie.   How can this be done?
0
Ray Turner
Asked:
Ray Turner
  • 2
2 Solutions
 
Surendra NathTechnology LeadCommented:
0
 
Ray TurnerSenior ConsultantAuthor Commented:
This looks good, but how do I run this code from Global.asax?
0
 
AnuTijiCommented:
Its not possible to execute javascript from global.asax page. You can execute javascript from the page in register start up scripts.
0
 
Ray TurnerSenior ConsultantAuthor Commented:
Can you provide an example?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now