Solved

Get Client Date Using ASP.Net

Posted on 2013-06-15
4
321 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

863 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

23 Experts available now in Live!

Get 1:1 Help Now