Copied to clipboard

Flag this post as spam?

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


  • athul 26 posts 117 karma points
    May 02, 2017 @ 04:25
    athul
    0

    BeginUmbracoForm throws error

    on my view I have a BeginUmbracoForm like this

     using (Html.BeginUmbracoForm("MakePayment", "PurchaseSurface", FormMethod.Post))
            {
            }
    

    And in my PurchaseSurfaceController I have an action method like this

     [HttpPost]
        public ActionResult MakePayment(ProductsViewModel productobj)
        { 
        }
    

    Everything looks okay to me but when I submit the form it throws an error like this

        The view 'MakePayment' or its master was not found or no view engine supports the searched locations. The following locations were searched:
    ~/Views/PurchaseSurface/MakePayment.aspx
    ~/Views/PurchaseSurface/MakePayment.ascx
    ~/Views/Shared/MakePayment.aspx
    ~/Views/Shared/MakePayment.ascx
    ~/Views/PurchaseSurface/MakePayment.cshtml
    ~/Views/PurchaseSurface/MakePayment.vbhtml
    ~/Views/Shared/MakePayment.cshtml
    ~/Views/Shared/MakePayment.vbhtml
    ~/Views/MakePayment.cshtml
    

    Can anyone please point out what I am missing here?

Please Sign in or register to post replies

Write your reply to:

Draft