ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Pager lost action name in pages greater than 1
Title:
B
I
{code}
?
Very strange .... I have a Pager() like your sample @(Html.Awe().Pager().Url(Url.Action("Index")).Count((int)ViewData["count"]).Page((int)ViewData["page"])) but seem lost action in page links ex: http://localhost:52470/Products/index# http://localhost:52470/Products?page=2 http://localhost:52470/Products?page=3 How is possible ?
Save Changes
Cancel
Meccanica Rossi
asked at 28 Jan 2019
the pager only takes the url that you gave it and adds ?page=x; just make sure your server code will has an index action with a page parameter
at 28 Jan 2019
Omu
yes, I resolve it changing Controller Name from Products to Product boh ...
at 28 Jan 2019
Meccanica Rossi
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK