Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Form Action View modes: 
User avatar
Member
Member
john.banning-springbox - 9/10/2010 3:21:07 PM
   
Form Action
I am running into an issue where the action attribute on the form tag on all pages contains the port for the website (:80). This is causing me issues specifically in Safari. I read the following post, http://devnet.kentico.com/Forums.aspx?forumid=18&threadid=5160, but was not able to get anywhere.

Here is an example of the form tag on all pages?
<form method="post" action="http://www.mysite.org:80/Take-Action/LSay-2010.aspx" id="aspnetForm">

Is there a setting in Kentico where I can control the port so it does not show?

I investigated setting the "Excluded output form filter URLs" but that is causing additional error on the login page.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 9/15/2010 9:31:15 AM
   
RE:Form Action
Hello,

The described form tag isn't a part of Kentico CMS. If you created it by yourself, please send us the code of the aspx file or the location, where you have added it in the portal engine. Please sent the e-mail to support@kentico.com, where we will continue to try to resolve this issue.

Best regards,
Boris Pocatko

User avatar
Member
Member
nzken - 2/22/2012 10:55:52 PM
   
RE:Form Action
I have a similar problem but much worse, where the form action is ALWAYS rendering out the page template path instead of the page being served. For example:

<form method="post" action="CMSTemplates/BlankASPX/root.aspx?aliaspath=%2fTest" id="aspnetForm">

I'm at my wit's end, and have researched/tried lots of different things but no luck. Version 4.0 btw.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 2/23/2012 3:15:49 AM
   
RE:Form Action
Hello,


do you add your own <form> tag to the page?


Best regards,
Helena Grulichova

User avatar
Member
Member
nzken - 2/23/2012 1:48:18 PM
   
RE:Form Action
Not on the page template. There is only one form tag and it's in the masterpage like this

<form id="frmData" runat="server">

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 2/27/2012 8:08:44 AM
   
RE:Form Action
Hello,


Do you use Portal engine or ASPX templates? See the difference here: Portal templates vs. ASPX templates

I am not sure if you changed the enveloping <form> tag on the ASPX master page (ASPX mater page) or added a new one to Portal emgine master page in CMSDesk. There can be always only one <form> tag and one is needful for ASP.NET functionality so you cannot add the second <form> tag. The portal templates have the needful envelping <form> tag in: ~/CMSPages/PortalTemplate.aspx. Can you provide me with more details?


Best regards,
Helena Grulichova


User avatar
Member
Member
nzken - 2/27/2012 2:26:42 PM
   
RE:Form Action
hi helena

we use ASPX templates.

it works fine when it's running in the VS webserver (VS 2010).

but the problem manifests when it's hosted in IIS7.

currently we have to apply a js hack on the server that blanks out the "action" attribute.

are there specific settings we have to change when hosting such a kentico site in IIS7?

thanks, ken

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 2/28/2012 5:30:33 AM
   
RE:Form Action
Hello,


Can you check if the Form output filter is disabled? If it is enabled, try to disable it. Please see here: Output filters for more details.

Otherwise Kentico should not affect it. Unless the settings of output filter helps, please check your IIS settings (esp. re-writing rules).


Best regards,
Helena Grulichova

User avatar
Member
Member
nzken - 3/4/2012 2:41:48 PM
   
RE:Form Action
Form filter - nothing is excluded, have also tried resaving the settings but still the same.

I don't believe there is any url rewriting going on.

I'm at a loss still why it works in VS webserver but not IIS.

Is it possible for you to quote the actual code that the Kentico library uses to generate the form action value?

Currently we have to apply a js hack to set form action to window.location.href.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 3/5/2012 8:33:09 AM
   
RE:Form Action
Hello,



You want to change the action of the only <form> tag on your master page, which runs on the server and is desired for ASP.NET functionality, right? If so, please see here: http://support.microsoft.com/kb/327600. In this case, Kentico cannot affect the by design behavior of ASP.NET and MS technologies.

If you are in a different situation, please post the code of your master page to understand it better.

By the way, to disable the output filter, please add / to that setting. Then it will apply the filter to no page (exclude all pages).


Best regards,
Helena Grulichova

User avatar
Member
Member
nzken - 4/17/2012 4:09:16 PM
   
RE:Form Action
Hi Helena

The master page simply has one form tag and it's like this:
<form id="frmData" runat="server">

The page template doesn't have a form tag.

The problem has become "bigger", because we thought it might have been environmental (and only takes place in our test environment) but it looks like now that we have deployed a build to our customer's UAT site the same problematic behaviour is exhibiting.

Any futher advice would be gratefully received!
Ken

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 4/18/2012 2:57:35 AM
   
RE:Form Action
Hi Ken,


do you pre-compile your site? I have found a similar issue when someone publish the site. Please see here: https://connect.microsoft.com/VisualStudio/feedback/details/557301/precompiled-app-browsers-dll-not-working-from-visual-studio-2010. Deleting the App_Browsers.dll assembly resolved this issue.

If you convert the web site to a web application, please make sure of including the App_Browser/outputfilter.browser file.

To sum up: it seems your web site does not use App_Browser/outputfilter.browser.


Best regards,
Helena Grulichova

User avatar
Member
Member
nzken - 4/25/2012 3:50:37 PM
   
RE:Form Action
You're right! I have just found out also that it is the app_browser.dll screwing it up. I put the one back from prod (which we haven't replaced with our release yet), and it has resolved the issue.

User avatar
Member
Member
vin4.net-gmail - 7/18/2012 1:27:30 PM
   
RE:Form Action
Hi,

I am no getting any examples in upgrading Version 5.5R2 ASPX templates of an application into Version 6.0 portal engine templates.


Could you please guide me or show an example so that I can understand.

Thank you in advance.

Regards,
Vinod

User avatar
Kentico Support
Kentico Support
kentico_radekm2 - 7/19/2012 4:00:20 AM
   
RE:Form Action
Hello.

Please refer to http://devnet.kentico.com/Forums/f57/t27765/Creating-custom-aspx-template.aspx

Best Regards,
Radek Macalik