Read only Textbox for calendar extender

When we are using AJAX calendar extender with Textbox then its difficult to fix it read only (Normally if we fix it as read only then we won't get date on page behind).

But the solution is simple.

Code Snippet
  1. protected void Page_Load(object sender, EventArgs e)
  2.     {
  3.         TextBox1.Attributes.Add("readonly", "readonly");
  4.     }

Thanks…

9 Comments

Comments have been disabled for this content.