Mvc icon indicating copy to clipboard operation
Mvc copied to clipboard

@Ajax.beginform is missing in MVC 6

Open rahuldhariya01 opened this issue 11 years ago • 1 comments

notice that ajax.beginform is missing from MVC 6 , why ? when I try to write ajax.beginform in a view its seems ajax object is missing. Any help ?

If I write ajax form like below then it works fine but “Onsuccess” event and so many other parameters are missing in it. See below

 <form asp-controller="PreRegistration" asp-action="Index"  data- ajax="true" 

 data-method="post"  data-ajax-mode="replace" data-ajax-update="#cooldiv">

            <label asp-for="FirstName">FirstName:</label><input asp-for="FirstName" /><br>        

                           <input type="submit" value="Save" />

    </form>

rahuldhariya01 avatar May 29 '15 16:05 rahuldhariya01

Duplicate of https://github.com/aspnet/Mvc/issues/2015

pranavkm avatar May 29 '15 18:05 pranavkm