Skip to content

Commit

Permalink
2008-07-14 Marek Habersack <mhabersack@novell.com>
Browse files Browse the repository at this point in the history
	* Page.cs: fix the failing tests by moving the form
	RaisePostBackEvent code up in RaisePostBackEvents, so that
	Validate () isn't called together with the registered post back
	events.

svn path=/trunk/mcs/; revision=107911
  • Loading branch information
grendello committed Jul 14, 2008
1 parent a60f024 commit ca03531
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions mcs/class/System.Web/System.Web.UI/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2008-07-14 Marek Habersack <mhabersack@novell.com>

* Page.cs: fix the failing tests by moving the form
RaisePostBackEvent code up in RaisePostBackEvents, so that
Validate () isn't called together with the registered post back
events.

2008-07-10 Roei Erez <roeie@mainsoft.com>

* ClientScriptManager.cs: Bug in javacript code, usind window scope instead of document.
Expand Down
7 changes: 5 additions & 2 deletions mcs/class/System.Web/System.Web.UI/Page.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1715,14 +1715,17 @@ void RaisePostBackEvents ()
return;
}

if (formPostedRequiresRaiseEvent != null) {
RaisePostBackEvent (formPostedRequiresRaiseEvent, null);
return;
}

NameValueCollection postdata = _requestValueCollection;
if (postdata == null)
return;

string eventTarget = postdata [postEventSourceID];
if (eventTarget == null || eventTarget.Length == 0) {
if (formPostedRequiresRaiseEvent != null)
RaisePostBackEvent (formPostedRequiresRaiseEvent, null);
Validate ();
return;
}
Expand Down

0 comments on commit ca03531

Please sign in to comment.