Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
4
Answers
How to actionlink pass parameter to controller MVC 5 ?
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Mani Kandan
7y
2.3k
1
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....
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
Nhibernate crud in asp.net mvc web api
SSRS report use in web application