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
lose filter in pager ,mvc
Dec 17 2020 2:05 AM
I have search with dropdownlist , and I have PagedListPager
when I request page 2, the value of search still exist, but the value of dropdownlist I lost the selected value of dropdown list
I get the value from the URL like this
String KEYWORD_NAME = Request.QueryString["Contant.KEYWORD_NAME"];
in the first time the KEYWORD_NAME has value but on second page no value while the URL still have the value of"Contant.KEYWORD_NAME "
some part of the controller
public ActionResult search(int? page, string search )
{
if (search == null )
{
Bindkeyword();
Bindcomany();
return View();
}
else
{
String KEYWORD_NAME = Request.QueryString["Contant.KEYWORD_NAME"];
Reply
Answers (
4
)
Calendar Controls in Webforms
ASP.net Login Page