#if NET_2_0
[SupportsEventValidation]
#endif
- public class HtmlTextArea : HtmlContainerControl, IPostBackDataHandler {
-
- private static readonly object serverChangeEvent = new object ();
-
+ public class HtmlTextArea : HtmlContainerControl, IPostBackDataHandler
+ {
+ static readonly object serverChangeEvent = new object ();
public HtmlTextArea ()
: base ("textarea")
{
base.OnPreRender (e);
- if (Page != null) {
+ if (Page != null && !Disabled) {
Page.RegisterRequiresPostBack (this);
+#if NET_2_0
+ Page.RegisterEnabledControl (this);
+#endif
}
}
{
#if NET_2_0
if (Page != null)
- Page.ClientScript.RegisterForEventValidation (this.UniqueID);
+ Page.ClientScript.RegisterForEventValidation (UniqueID);
#endif
if (Attributes ["name"] == null) {
writer.WriteAttribute ("name", Name);
protected virtual void RaisePostDataChangedEvent ()
{
+ ValidateEvent (UniqueID, String.Empty);
OnServerChange (EventArgs.Empty);
}
#endif