I have a hidden field in my master page. And I set the current date and time as a value in that \"hiddenfield\" using Javascript. I am unable to get this hidden field value
Master Page
set servertime
protected void Page_Load(object sender, EventArgs e) { HiddenField1.Value = DateTime.Now.ToString(); }
set client machine time
Content Page
HiddenField hdnvalue = this.Master.Master.FindControl("HiddenField1") as HiddenField; string currenttime=hdnvalue.Value;