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

  • Home
  • SEARCH
  • 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 8284377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:05:08+00:00 2026-06-08T11:05:08+00:00

I am using a RouteValueDictionary to pass RouteValues to a ActionLink: If I code:

  • 0

I am using a RouteValueDictionary to pass RouteValues to a ActionLink:

If I code:

<%:Html.ActionLink(SharedResources.Shared_Pagination_First, Model.ActionToExecute, Model.ControllerToExecute, Model.FirstRouteValues, null)%>

The link result is Ok:

SearchArticles?refSearch=2&exact=False&manufacturerId=5&modelId=3485&engineId=-1&vehicleTypeId=5313&familyId=100032&page=0

But if i code:

<%: Html.ActionLink(SharedResources.Shared_Pagination_First, Model.ActionToExecute, Model.ControllerToExecute, Model.FirstRouteValues, new { @title = string.Format(SharedResources.Shared_Pagination_LinkTitle, 0) })%>

The link result is:

SearchArticles?Count=10&Keys=System.Collections.Generic.Dictionary%602%2BKeyCollection%5BSystem.String%2CSystem.Object%5D&Values=System.Collections.Generic.Dictionary%602%2BValueCollection%5BSystem.String%2CSystem.Object%5D

What’s the problem? The only difference is that in the last i am using htmlAttributes

  • 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-06-08T11:05:11+00:00Added an answer on June 8, 2026 at 11:05 am

    You are using the wrong overload of the ActionLink helper. There’s no overload that takes routeValues as a RouteValueDictionary and htmlAttributes as an anonymous object. So if Model.FirstRouteValues is a RouteValueDictionary then the last argument must also be a RouteValueDictionary or a simple IDictionary<string,object> and not an anonymous object. Just like that:

    <%= Html.ActionLink(
        SharedResources.Shared_Pagination_First, 
        Model.ActionToExecute, 
        Model.ControllerToExecute, 
        Model.FirstRouteValues, 
        new RouteValueDictionary(
            new { 
                title = string.Format(SharedResources.Shared_Pagination_LinkTitle, 0) 
            }
        )
    ) %>
    

    or

    <%=Html.ActionLink(
    SharedResources.Shared_Pagination_First, 
    Model.ActionToExecute, 
    Model.ControllerToExecute, 
    Model.FirstRouteValues, 
    new Dictionary<string, object> { { "title", somevalue  } })%>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following URL in mind: /restaurants/italian/miami.html /restaurants/italian/miami-p2.html Using these routes routes.MapRoute(null, {category}/{branch}/{city}-p{page}.html,
I was using Html.RouteLink(LINKTEXT,RouteName,new RouteValueDictionary()) in asp.net MVC beta without problem, today I upgrade
Using preview 4 of ASP.NET MVC Code like: <%= Html.CheckBox( myCheckBox, Click Here, True,
I was using Ajax.Pager in MVC 2 which worked fine.Here is the code in
I'm attempting to unit test some code using NUnit. I have a method: public
I'm building an url using the method: Url.Action(action, controller); I like to pass the
Im using an action link and passing in tRVD where tRVD is the following:
I'm having issues creating an ActionLink using Preview 5. All the docs I can
Using a textbox to search a value in a given datagridview column, the code
Using a CSS image sprite, I'm creating an 'interactive' image where hovering over certain

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.