// attributes
[DefaultEvent ("ServerChange")]
[ValidationProperty ("Value")]
- public class HtmlTextArea : HtmlContainerControl, IPostBackDataHandler {
-
- private static readonly object serverChangeEvent = new object ();
-
+#if NET_2_0
+ [SupportsEventValidation]
+#endif
+ public class HtmlTextArea : HtmlContainerControl, IPostBackDataHandler
+ {
+ static readonly object serverChangeEvent = new object ();
public HtmlTextArea ()
: base ("textarea")
[WebSysDescription("")]
[WebCategory("Behavior")]
public virtual string Name {
- get { return ID; }
+ get { return UniqueID; }
set { ; }
}
[WebSysDescription("")]
[WebCategory("Appearance")]
public string Value {
- get { return InnerHtml; }
- set { InnerHtml = value; }
+ get { return InnerText; }
+ set { InnerText = value; }
}
{
base.OnPreRender (e);
- if (Page != null) {
+ if (Page != null && !Disabled) {
Page.RegisterRequiresPostBack (this);
+#if NET_2_0
+ Page.RegisterEnabledControl (this);
+#endif
}
}
protected override void RenderAttributes (HtmlTextWriter writer)
{
+#if NET_2_0
+ if (Page != null)
+ 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