void AjaxDate_Load(object sender, EventArgs e) { if (IsRequired) { if (string.IsNullOrEmpty(txtDate.Attributes["readonly"])) txtDate.Attributes.Add("readonly", "readonly"); } SetCalendarExtenderValue(); } #endregion