Author: krasnov
Date: 2008-02-13 05:09:28 -0500 (Wed, 13 Feb 2008)
New Revision: 95563
Modified:
trunk/mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog
trunk/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs
Log:
* HtmlForm.cs: fixed action attribute in RenderAttributes under TARGET_JVM
Modified: trunk/mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog
2008-02-13 09:30:29 UTC (rev 95562)
+++ trunk/mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog
2008-02-13 10:09:28 UTC (rev 95563)
@@ -1,3 +1,8 @@
+2008-02-13 Vladimir Krasnov <[EMAIL PROTECTED]>
+
+ * HtmlForm.cs: fixed action attribute in RenderAttributes under
+ TARGET_JVM
+
2008-02-06 Marek Habersack <[EMAIL PROTECTED]>
* HtmlMeta.cs: render XHTML compliant tag if not in the Legacy
Modified: trunk/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs
2008-02-13 09:30:29 UTC (rev 95562)
+++ trunk/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs
2008-02-13 10:09:28 UTC (rev 95563)
@@ -260,8 +260,11 @@
#else
// Allow the page to transform action to a portlet
action url
string customAction = Attributes ["action"];
- if (String.IsNullOrEmpty(customAction))
- action = CreateActionUrl
(VirtualPathUtility.ToAppRelative (Page.Request.CurrentExecutionFilePath) +
Page.Request.QueryStringRaw);
+ if (String.IsNullOrEmpty (customAction)) {
+ string queryString =
Page.Request.QueryStringRaw;
+ action = CreateActionUrl
(VirtualPathUtility.ToAppRelative (Page.Request.CurrentExecutionFilePath) +
+ (string.IsNullOrEmpty (queryString) ?
string.Empty : "?" + queryString));
+ }
else
action = customAction;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches