1. Dont assign readonly property=true in design mode.
2. Bind the readonly property from serverside page load event like:
1 if (!IsPostBack)
2 txt_ReadOnly.Attributes.Add(“readonly”, “readonly”);
Hope now your problem has been resolved.