This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.
Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.
Before posting questions here you might want to review the developer documentation.
I am using mojoMembershipProvider as defaultProvider for my project. I also added two asp membership provider for my project.
I published the project and hosted it in IIS Integrated Pipeline Mode, but it's not working as expected.
On using IIS Integrated Pipeline Mode, the form element is not rendering properly. But when I changed it to Classic mode everything started working fine. The form element is also rendering properly.
In Integrated mode, the action attribute of form element is always "/" instead of "/currentpage.aspx".
eg.) If I am in homepage.aspx of the site, then the action attribute of the form element should be rendered as "/homepage.aspx".
But it always rendered as "/". So the form is not submitting properly.
In Classic mode, the action attribute of form element rendered correctly.
Is there any way to fix this issue?
Please kindly help me on this issue.
Thanks in advance. :)
This problem does not happen in mojoPortal, I use Integrated App pool and never have this problem.
Joe Audette Thanks for your reply.
I solved the problem by using the mojoportal version 2.3.7.7 MSSQL. When I used my project in mojoportal version 2.3.7.7 everything works fine in IIS Integrated Mode.
But if I use mojoportal version 2.3.9.8 in IIS Integrated Mode only for some pages, I met the action attribute rendering problem.
Please see the following link for the screenshot images where i have posted about the issue.
http://stackoverflow.com/questions/18831086/iis-hosted-site-not-working-properly-in-integrated-mode-but-working-fine-in-clas
I suspect that problem will be due to UrlRewriter or Script used in mojoBasePage OnInit function which sets the action attribute.
string formActionScript = "<script type=\"text/javascript\">" + "Sys.Application.add_load(function() { var form = Sys.WebForms.PageRequestManager.getInstance()._form; form._initialAction = form.action = window.location.href; }); " + "</script>";
Does the above script causes any problem on action attribute.
I tested by setting breakpoints in UrlRewriter and OnInit(mojoBasePage). But I can't catch where the problem is occuring.
In coding where do you set the action attribute for form element.
Is there any way to fix this problem and please provide your valuable suggestions.
Kindly please advise me on that issue.
Joe,
We found the problem and solved it. It occured because of the AjaxToolKit:ModalPopupExtender used in some pages.
When I use AjaxToolkit:ModalPopupExtender in a page then the script in the mojoBasePage.cs which is used to set the form.action is not working.
Script for setting form action is located in OnInit of mojoBasePage.aspx :
The above script didn't work due to the AjaxControlToolKit Version used.
Ajax version working: 4.1.50731.0 ==> script worked
Ajax version not working: 4.1.7.0123 ==> script didn't work
Is there any way to fix this.
Thanks in advance.