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.WebControls/CustomValidator.cs')
-rw-r--r--mcs/class/System.Web/System.Web.UI.WebControls/CustomValidator.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/CustomValidator.cs b/mcs/class/System.Web/System.Web.UI.WebControls/CustomValidator.cs
index a6e76669a31..5be24aec210 100644
--- a/mcs/class/System.Web/System.Web.UI.WebControls/CustomValidator.cs
+++ b/mcs/class/System.Web/System.Web.UI.WebControls/CustomValidator.cs
@@ -52,8 +52,13 @@ namespace System.Web.UI.WebControls {
[Themeable (false)]
#endif
public string ClientValidationFunction {
- get { return ViewState.GetString("ClientValidationFunction", ""); }
- set { ViewState["ClientValidationFunction"] = value; }
+ get {
+ return ViewState.GetString("ClientValidationFunction", string.Empty);
+ }
+
+ set {
+ ViewState["ClientValidationFunction"] = value;
+ }
}
#if NET_2_0