using System.ComponentModel;
using System.Collections.Specialized;
using System.Globalization;
+using System.Security.Permissions;
namespace System.Web.UI.HtmlControls {
+ // CAS
+ [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
+ [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
+ // attributes
[DefaultEvent ("ServerChange")]
[ValidationProperty ("Value")]
+#if NET_2_0
+ [SupportsEventValidation]
+#endif
public class HtmlTextArea : HtmlContainerControl, IPostBackDataHandler {
private static readonly object serverChangeEvent = new object ();
[WebSysDescription("")]
[WebCategory("Behavior")]
public virtual string Name {
- get { return ID; }
+ get { return UniqueID; }
set { ; }
}
[WebSysDescription("")]
[WebCategory("Appearance")]
public string Value {
+#if NET_2_0
+ get { return InnerText; }
+ set { InnerText = value; }
+#else
get { return InnerHtml; }
set { InnerHtml = value; }
+#endif
}
override void OnPreRender (EventArgs e)
{
base.OnPreRender (e);
+
+ if (Page != null) {
+ Page.RegisterRequiresPostBack (this);
+ }
}
protected virtual void OnServerChange (EventArgs e)