protected void btnClear_Click(object sender, EventArgs e) { TextBox txtDateTime = (TextBox)DateTimePicker.FindControl("txtDateTime"); txtDateTime.Text = string.Empty; lblMessage.Text = string.Empty; }