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)
- {
- }
- }
- @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();
- });



Gnanavel SekarRank #333 · 7.5K reputationPosted Feb 22, 2017, 12:27 AM EST
Joginder BangerRank #360 · 7K reputationPosted Feb 22, 2017, 4:31 AM EST