Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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.cs10
1 files changed, 7 insertions, 3 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 9d32d73af0e..0f0775d1aba 100644
--- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs
+++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs
@@ -12,6 +12,7 @@ using System.Collections.Specialized;
namespace System.Web.UI.HtmlControls{
+ [DefaultEvent("ServerChange")]
public class HtmlTextArea : HtmlContainerControl, IPostBackDataHandler{
private static readonly object EventServerChange;
@@ -80,7 +81,9 @@ namespace System.Web.UI.HtmlControls{
}
}
- public bool LoadPostData(string postDataKey, NameValueCollection postCollection){
+ bool IPostBackDataHandler.LoadPostData (string postDataKey,
+ NameValueCollection postCollection)
+ {
string currentValue = Value;
string postedValue = postCollection[postDataKey];
if (!currentValue.Equals(postedValue) && currentValue != null){
@@ -96,8 +99,9 @@ namespace System.Web.UI.HtmlControls{
base.RenderAttributes(writer);
}
- public void RaisePostDataChangedEvent(){
- OnServerChange(EventArgs.Empty);
+ void IPostBackDataHandler.RaisePostDataChangedEvent ()
+ {
+ OnServerChange (EventArgs.Empty);
}
protected override void OnPreRender(EventArgs e){