Add portal support
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / Button.cs
index 3b4311379e3f83ead61a15cd4ba82f0a12caf041..1b47d3332b5f773e3307753f6129810db3c542a4 100644 (file)
@@ -213,6 +213,11 @@ namespace System.Web.UI.WebControls {
                {
                        PostBackOptions options = new PostBackOptions (this);
                        options.ActionUrl = (PostBackUrl.Length > 0 ? Page.ResolveClientUrl (PostBackUrl) : null);
+#if TARGET_J2EE
+                       vmw.@internal.j2ee.IPortletRenderResponse resp = GetRenderResponse();
+                       if (resp != null && options.ActionUrl != null)
+                               options.ActionUrl = resp.createActionURL(options.ActionUrl);
+#endif
                        options.ValidationGroup = null;
                        options.Argument = "";
                        options.RequiresJavaScriptProtocol = false;