Register  |  Login

Question Details    

   Question

Time: 03:28 - Sep 27, 2007     Asked by: aaa_mits      Status: Unanswered      Points: 75   

Client browser date and time

I am working on a project in asp.net c#. In this project my client enter data from different location, I need to track the data entery with local date and time (client Browser not server).

Need your help, so that I will able to save the local date and time in DB.

Regard.

Amjad Ali Awan

Ask a New Question

Become a Quomon Expert

Current Categories

 

Other Questions Needing Answers


   

Answer Discussion
Answer Discussion
Answer Summaries
Answer Summary
 
you can use timestamp to track the data when entered it basically. it can be stored in the database when the client enter the data from different location than you have to enter the timestamp value in the same row of table with the current local date and time.

Expert:

shashi.programmer

Date:

Sep 27, 2007

Time:

03:57

 

Votes: Good (0) | Bad (0)
Login to rate this answer

http://rsanidad.wordpress.com/2007/09/21...

Visit the link to get your task done..

<script>
function GetClientUtcOffset()
{
var d = new Date();
document.forms[0][”UtcOffset”].value
= d.getTimezoneOffset();
}
</script>


<body onload=”GetClientUtcOffset();”>
<form id=”form1″ runat=”server”>
<input type=”hidden” runat=”server” id=”UtcOffset” />
.
.
.

In our code behind, we got the value and put it in a cookie. The alternative was to put it in a session.


protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack && Request.Cookies[”utcOffset”] == null)
{
HttpCookie utcOffsetCookie =
new HttpCookie(”utcOffset”, “0″);
if (!string.IsNullOrEmpty(UtcOffset.Value))
utcOffsetCookie.Value = UtcOffset.Value;
Response.Cookies.Add(utcOffsetCookie);
}
}

Expert:

prashanth.guru

Date:

Oct 18, 2007

Time:

06:47

 

Votes: Good (0) | Bad (0)
Login to rate this answer

 

Answer Summary Currently Unavailable.

Answer Summaries cannot be submitted until the Answer Discussion is complete.

If you have an Answer for this question, submit it in the Answer Discussion area.




Respond to this question:

New User

  Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:


Forgotten Password

 

   

"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it


All Questions


Language Options

English:

www.quomon.com

Español:

www.quomon.es

Quomon Blog

blog.quomon.com

Sponsors

Questions and Answers Software
Real Estate Postcards
Marketing Fulfillment