Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nick Bennett 14 posts 84 karma points
    Mar 31, 2019 @ 21:53
    Nick Bennett
    0

    Ajax.BeginForm - no overload with controllerName parameter

    I want to create a member login form using Ajax to post to my login controller. As it's in a partial view invoked from my site master, I'll need to specify the controller name. But there isn't an overload that has a controllerName parameter.

    I've attempted to do it be specifying the Url to post to in the AjaxOptions. However, it doesn't work: when I click the submit button, it just reloads whatever page I am on.

Please Sign in or register to post replies

Write your reply to:

Draft