فهرست منبع

2002-09-25 Gonzalo Paniagua Javier <[email protected]>

	* Control.cs: implemented ObBubbleEvent.
	* Page.cs: temporary workaround to make POST work with xsp server.

svn path=/trunk/mcs/; revision=7829
Gonzalo Paniagua Javier 23 سال پیش
والد
کامیت
2e92d252d3

+ 5 - 0
mcs/class/System.Web/System.Web.UI/ChangeLog

@@ -1,3 +1,8 @@
+2002-09-25  Gonzalo Paniagua Javier <[email protected]>
+
+	* Control.cs: implemented ObBubbleEvent.
+	* Page.cs: temporary workaround to make POST work with xsp server.
+
 2002-09-22  Gonzalo Paniagua Javier <[email protected]>
 
 	* Page.cs: fixed InvokeEventMethod now that Type.GetMethod does not

+ 8 - 3
mcs/class/System.Web/System.Web.UI/Control.cs

@@ -457,16 +457,21 @@ namespace System.Web.UI
                         }
                 }
                 
-				[MonoTODO]
                 protected void RaiseBubbleEvent(object source, EventArgs args)
                 {
-                        throw new NotImplementedException();
-                        //return false;
+			Control c = Parent;
+			while (c != null) {
+				if (c.OnBubbleEvent (source, args))
+					break;
+				c = c.Parent;
+			}
                 }
+
                 protected virtual void Render(HtmlTextWriter writer) //DIT
                 {
                         RenderChildren(writer);
                 }
+
                 protected virtual void RenderChildren(HtmlTextWriter writer) //DIT
                 {
                         if (_renderMethodDelegate != null)

+ 2 - 1
mcs/class/System.Web/System.Web.UI/Page.cs

@@ -281,7 +281,8 @@ public class Page : TemplateControl, IHttpHandler
 
 		NameValueCollection coll = null;
 		if (IsPostBack)
-			coll =  _context.Request.Form;
+			//coll =  _context.Request.Form; FIXME: the correct is this one. commented out to let xsp work
+			coll = _context.Request.QueryString;
 		else 
 			coll = _context.Request.QueryString;