TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Abhilash J A
533
2.4k
597.5k
How to actionlink pass parameter to controller MVC 5 ?
Feb 22 2017 5:13 AM
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....
Reply
Answers (
4
)
Nhibernate crud in asp.net mvc web api
SSRS report use in web application