Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 357925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:15:05+00:00 2026-05-12T12:15:05+00:00

I am having the same problem as this post but the answer does not

  • 0

I am having the same problem as this post but the answer does not work….
No overload for method ‘Pager’ takes ‘4’ arguments
Am I using old MVCContrib or the answer is deprecated?

my code looks like this:
in controller

 public ActionResult Index(int? clubid,int? page)
        {
            List<aspnet_Users> memberList = new List<aspnet_Users>();
            IEnumerable enumerable;
            if (!clubid.HasValue)
            {
                enumerable = aspnet_Users.Find(User.Identity.Name).Club != null ? aspnet_Users.FindAllByClubId(aspnet_Users.Find(User.Identity.Name).Club.Id) : aspnet_Users.FindAll();
            }
            else
            {
                if (clubid == 0)
                {
                    enumerable = aspnet_Users.FindAll();
                }
                else
                {
                    enumerable = aspnet_Users.FindAllByClubId(clubid.Value);
                }
            }
            ViewData["clubid"] = clubid;
            foreach (aspnet_Users member in enumerable)
            {
                memberList.Add(member);
            }
            return View(memberList.AsPagination(page ?? 1, 10));

        }

in view

 <h2>Index</h2>

 <% using (Html.BeginForm()) {
        ArrayList clubs=new ArrayList();
        clubs.Add(new Club(0, "Toate"));
        clubs.AddRange(Club.FindAll());

        %>

                 <%= Html.DropDownList("ClubId", new SelectList(clubs, "Id", "Name", (Model == null ? 0 : aspnet_Users.Find(Page.User.Identity.Name).Club != null ? aspnet_Users.Find(Page.User.Identity.Name).Club.Id : 0)))%>
                 <input type="submit" value="Filtreaza" />
  <% } %>

    <table>
        <tr>
            <th>Action</th>
            <th>
                UserName
            </th>
            <th>
                Club
            </th>

.....


         <%=Html.Encode(item.Male?"Male":"Female")%>
            </td>
             <td>
                <%=Html.Encode(item.BirthDay.HasValue?item.BirthDay.Value.ToString(ConfigurationManager.AppSettings["DateFormat"], CultureInfo.InvariantCulture):"")%>
            </td>

        </tr>

    <% }%>

    </table> <%= Html.Pager(Model)%>

if I filter the result changing the clubid with the dropdown the selected value is not passed to the next pages…

the next page link is Members/Index?page=2 and I want Members/Index?clubid=1&page=2

I have tried with
<%= Html.Pager(ViewData.Model.PageSize, ViewData.Model.PageNumber, ViewData.Model.TotalItemCount, new { categoryname = ViewData[“clubid”] } )%>
but i get compile errors

No overload for method ‘Pager’ takes
‘4’ arguments

I have checked and I have the latest release og mvccontrib (1.0.0.916)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T12:15:05+00:00Added an answer on May 12, 2026 at 12:15 pm

    Not sure what exactly you are trying to do–perhaps you could post some code.

    That said, the MvcContrib binaries available from CodePlex are pretty out of date. Specifically, there is a much improved grid and paging model. You should grab the latest from GitHub and build your own copy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 169k
  • Answers 170k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Joe Duffy's "Concurrent Programming On Windows" mentions this (P311-312, P598).… May 12, 2026 at 2:00 pm
  • Editorial Team
    Editorial Team added an answer I don't know of some canned script to do this.… May 12, 2026 at 2:00 pm
  • Editorial Team
    Editorial Team added an answer Unfortunately, manage.py silently fails to load an app where there's… May 12, 2026 at 2:00 pm

Related Questions

I am having problem with the contents of a pointer passed as the wParam
I actually have two questions regarding the same problem but I think it is
Our installation program is written using InstallShield2009, and as part of certification requirements we
We have a requirement that has had me skimming the web for quite sometime

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.