protected void Page_Load(object sender, EventArgs e) { string key = "clientScript"; string script = "document.getElementById('LblDate').textContent = new Date();"; ClientScript.RegisterStartupScript(LblDate.GetType(), key, script, true); }