Custom Module Submit Button POSTs to Home.aspx

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.

This forum is for discussing mojoPortal development

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.

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.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
6/11/2025 2:23:30 PM
Gravatar
Total Posts 6

Custom Module Submit Button POSTs to Home.aspx

I recently upgraded to 2.9 from 2.3. Most things went pretty smoothly.

There is one complaint, though, regarding a custom module. It is supposed to post back to itself but ends up posting to Home.aspx. Let's call the custom module editMessage.ascx. Let's call the page that uses that module editMessage.aspx. The module has a submit button that runs at the server. The OnClick in the ascx is set to btnSave_Click and that method exists in the code behind. Yet, when I navigate to that editMessage.aspx page, fill out the form, and click the button, the POST sends me to the /home.aspx page.

Please ask questions for more info.