Solved

Get Client Date Using ASP.Net

Posted on 2013-06-15
4
320 Views
Last Modified: 2013-09-04
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
Comment
Question by:Ray Turner
  • 2
4 Comments
 
LVL 16

Assisted Solution

by:Surendra Nath
Surendra Nath earned 250 total points
ID: 39250569
0
 

Author Comment

by:Ray Turner
ID: 39252148
This looks good, but how do I run this code from Global.asax?
0
 
LVL 4

Accepted Solution

by:
AnuTiji earned 250 total points
ID: 39255409
Its not possible to execute javascript from global.asax page. You can execute javascript from the page in register start up scripts.
0
 

Author Comment

by:Ray Turner
ID: 39260776
Can you provide an example?
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now