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?
Ray TurnerSenior ConsultantAsked:
Who is Participating?
AnuTijiConnect With a Mentor Commented:
Its not possible to execute javascript from global.asax page. You can execute javascript from the page in register start up scripts.
Surendra NathConnect With a Mentor Technology LeadCommented:
Ray TurnerSenior ConsultantAuthor Commented:
This looks good, but how do I run this code from Global.asax?
Ray TurnerSenior ConsultantAuthor Commented:
Can you provide an example?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.