Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
How to actionlink pass parameter to controller MVC 5 ?
Mani Kandan
Feb 22 2017 5:13 AM
2.3k
Reply
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....
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
Nhibernate crud in asp.net mvc web api
SSRS report use in web application