Hello,
How can I pass 'NextPrevious' value to controller?
Now 'NextPrevious' is getting always null
- [HttpPost]
- public ActionResult PremiumUserRegistration(PartnersVM partnersVM,string NextPrevious)
- {
- if (NextPrevious != null)
- {
- }
- }
View,
- @Html.ActionLink("Next >>", "PremiumUserRegistration", "UserRegister", new { NextPrevious = "NextPrevious", @class = "btnActionNext", onclick = "return false;" })
And my sript .js file
- $('.btnActionNext').click(function () {
- $(this).closest('form')[0].submit();
- });
Please help me....