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 6565339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:04:55+00:00 2026-05-25T14:04:55+00:00

When you use MvcContrib grid sorting out-of-the-box, it automatically appends the querystrings Column and

  • 0

When you use MvcContrib grid sorting out-of-the-box, it automatically appends the querystrings Column and Direction to your URL. For instance:

www.mysite.com/listing?Column=Bedrooms&Direction=Ascending

Is there a way to lowercase the querystrings (Column and Direction) so that you get this:

www.mysite.com/listing?column=Bedrooms&direction=Ascending

I’m using ASP.NET MVC 3 with MvcContrib version 3.

  • 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-25T14:04:56+00:00Added an answer on May 25, 2026 at 2:04 pm

    Unfortunately those values are hardcoded in the MvcContrib.UI.Grid.HtmlTableGridRenderer<T> class:

    // MvcContrib.UI.Grid.HtmlTableGridRenderer<T>
    private RouteValueDictionary CreateRouteValuesForSortOptions(GridSortOptions sortOptions, string prefix)
    {
        if (string.IsNullOrEmpty(prefix))
        {
            return new RouteValueDictionary(sortOptions);
        }
        return new RouteValueDictionary(new Dictionary<string, object>
        {
            {
                prefix + ".Column", 
                sortOptions.Column
            }, 
            {
                prefix + ".Direction", 
                sortOptions.Direction
            }
        });
    }
    

    The CreateRouteValuesForSortOptions private method is invoked by the RenderHeaderText virtual protected method. So if you want to have lowercase parameter names one possibility would be to write a custom GridRenderer<T>.

    Another possibility is to write a custom Route to make urls lowercase. You may take a look at the following blog post which illustrates how to make all urls in an application to be lowercase but you could tweak it to your needs.

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

Sidebar

Related Questions

I want to use MvcContrib Grid helper, but i stuck on the problem -
I don't find a method to add a custom column in a MvcContrib Grid.
I am able to use the MVCContrib Grid Pager as in the following sample
Use case: A does something on his box and gots stuck. He asks B
I just started using the MVCContrib grid in a test project. I'm having a
I am looking at the MvcContrib Grid component and I'm fascinated, yet at the
I am trying to use MVCContrib InputBuilders but I am having trouble. I am
I'm just starting to use the TestHelpers in MvcContrib. I want to try and
Is there any documentation or example how to use MvcContrib.TestHelper.Ui and WatinDriver?
I'm using the strongly typed Url.Action method from MvcContrib to do all of my

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.