diff options
author | Marek Habersack <grendel@twistedcode.net> | 2008-10-17 18:56:19 +0400 |
---|---|---|
committer | Marek Habersack <grendel@twistedcode.net> | 2008-10-17 18:56:19 +0400 |
commit | 81c4068d121ad2da6fca3e086f5b2fed4658a5d4 (patch) | |
tree | bc8758158451a4a6e8ed350de9774b8a075e18d4 /mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs | |
parent | 51a3877cec324f6c3c5f87ebf745535184d90a20 (diff) |
2008-10-17 Marek Habersack <mhabersack@novell.com>
* ImageMap.cs: added the SupportsEventValidation attribute to the
class.
Validate the event in RaisePostBackEvent ().
Register for event validation in Render ().
* DropDownList.cs, ListBox.cs: validate the event in LoadPostData ().
* TextBox.cs: validate the event in LoadPostData ().
Register for event validation in AddAttributesToRender ().
* HiddenField.cs: validate the event in RaisePostDataChangedEvent.
Register for event validation in Render ().
* RadioButton.cs: validate the event in LoadPostData ().
Register for event validation in InternalAddAttributesToRender.
* CheckBox.cs, RadioButtonList.cs: validate the event in
RaisePostDataChangedEvent.
* Menu.cs: added the SupportsEventValidation attribute to the
class.
Validate the event in RaisePostBackEvent ().
Register for event validation in GetClientEvent ().
* DetailsView.cs, GridView.cs: validate the event in
RaisePostBackEvent ().
Register for validation in GetCallbackScript () and in OnPreRender
* Button.cs, Table.cs, BulletedList.cs, Calendar.cs, LinkButton.cs,
ImageButton.cs, TreeView.cs: validate the event in RaisePostBackEvent ().
2008-10-17 Marek Habersack <mhabersack@novell.com>
* Control.cs: added the ValidateEvent internal method, used by
classes descending from Control to automatically trigger event
validation.
* Page.cs: removed the CheckForValidationSupport method. It moved
to Control.cs
RaisePostBackEvent no longer validates the events, this
functionality has been moved to Control.ValidateEvent.
2008-10-17 Marek Habersack <mhabersack@novell.com>
* HtmlInputHidden.cs: validate the event in LoadPostDataInternal.
* HtmlInputButton.cs: validate the event in
RaisePostBackEventInternal ().
Register for event validation in RenderAttributes ()
* HtmlTextArea.cs: validate the event in
RaisePostBackDataChangedEvent ().
* HtmlButton.cs: validate the event in RaisePostBackEvent ().
Register for event validation in RenderAttributes ()
* HtmlAnchor.cs: validate the event in RaisePostBackEvent ().
Register for event validation in RenderAttributes ().
* HtmlInputRadioButton.cs, HtmlSelect.cs: validate the event in
LoadPostData.
* HtmlInputText.cs, HtmlInputImage.cs, HtmlInputCheckBox.cs,
HtmlInputPassword.cs: validate the event in
RaisePostDataChangedEvent ().
2008-10-17 Marek Habersack <mhabersack@novell.com>
* MenuAdapterTest.cs: work around event validation failure in the
test environment.
2008-10-17 Marek Habersack <mhabersack@novell.com>
* PageTest.cs: use a custom version of HtmlInputHidden control to
work around the new event validation code which doesn't work in
this instance.
svn path=/trunk/mcs/; revision=116231
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs')
-rw-r--r-- | mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs index 0b7644e47b5..e252dd3525f 100644 --- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs +++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs @@ -142,7 +142,7 @@ namespace System.Web.UI.HtmlControls { { #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); @@ -158,6 +158,7 @@ namespace System.Web.UI.HtmlControls { protected virtual void RaisePostDataChangedEvent () { + ValidateEvent (UniqueID, String.Empty); OnServerChange (EventArgs.Empty); } #endif |