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
أماني مفيد
NA
142
17.3k
pass value from view to controller
Jan 20 2021 10:17 AM
i have this dropdown list
@Html.DropDownListFor(model => model.Contant.KEYWORD_NAME, ViewData[
"KEYWORD_NAME"
] as IEnumerable<SelectListItem>, item.SelectedItemType,
new
{ @
class
=
"form-control"
})
and i pass some data to view
@
if
(Model !=
null
)
{
@Html.PagedListPager(Model.Items, page => Url.Action(
"search"
,
new
{ page, search = Request.QueryString[
"search"
], KEYWORD_NAME = Request.QueryString[
"Contant.KEYWORD_NAME"
]}),
new
PagedListRenderOptions()
{
Display = PagedListDisplayMode.IfNeeded,
DisplayPageCountAndCurrentLocation =
true
,
DisplayItemSliceAndTotal =
true
})
this is the header for the method
public
ActionResult search(
int
? page,
string
search,
string
KEYWORD_NAME)
i have value for page and search m but for KEYWORD_NAMEits null
how i can fix it ?
Reply
Answers (
5
)
How to increase Session timeout in C# MVC web application?
how to find the parent control from child control event