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:
authorLluis Sanchez <lluis@novell.com>2005-03-11 16:24:59 +0300
committerLluis Sanchez <lluis@novell.com>2005-03-11 16:24:59 +0300
commitb7c1b9a9521603ff53d14f50986eec6bcc1bf101 (patch)
treed23b6f3de23900ce4466cf18731f7de27e0329fa /mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs
parentc1d190d884fd576df1671b4a72b320f3ce4a88c9 (diff)
2005-03-11 Lluis Sanchez Gual <lluis@novell.com>
* HtmlInputButton.cs, HtmlAnchor.cs, HtmlButton.cs: Don't use Page.GetPostBackClientEvent since it is deprecated in 2.0. svn path=/trunk/mcs/; revision=41697
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs')
-rwxr-xr-xmcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs
index 3ad014e3612..1a962de0cd0 100755
--- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs
+++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs
@@ -34,7 +34,7 @@ namespace System.Web.UI.HtmlControls{
if (Page != null && CausesValidation) {
string type = Type;
if (String.Compare (type, "button", true) == 0 || String.Compare (type, "submit", true) == 0) {
- string script = Page.GetPostBackClientEvent (this, String.Empty);
+ string script = Page.ClientScript.GetPostBackClientEvent (this, String.Empty);
if (script != null &&
((String.Compare (type, "button", true) == 0 && Events[EventServerClick] != null )||
(String.Compare (type, "submit", true) == 0 && Page.Validators.Count > 0))){