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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:32:26+00:00 2026-05-15T07:32:26+00:00

Many MVC frameworks (e.g. PHP’s Zend Framework) have a way of providing basic state

  • 0

Many MVC frameworks (e.g. PHP’s Zend Framework) have a way of providing basic state management through URLs. The basic principle is this:

Any parameters that were not explicitly modified or un-set get copied into every URL

For instance, consider a listing with pagination. You’ll have the order, direction and page number passed as URL parameters. You may also have a couple of filters. Changing the value of a filter should not alter the sort order.

ASP.net MVC seems to remember your controller and action by default:

<%: Html.RouteLink("Next", "MyRoute", new {id = next.ItemId}) %>

This will not re-set your action or controller. However, it does seem to forget all other parameters. The same is true of ActionLink.

Parameters that get set earlier on in your URL seem to get retained as well.

Is there a way to make it retain more than that?

For instance, this does not seem to affect any of the links being generated:

RouteData.Values["showDeleted"] = true;
  • 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-15T07:32:27+00:00Added an answer on May 15, 2026 at 7:32 am

    The easiest solution to remembering paging and sorting parameters is to have a client side tool (like jqGrid) do the management for you.

    ActionLink won’t remember parameters because that’s not it’s job. It is designed to provide a link (completely independent of what page you’re currently on) to another page.

    Based on the links you shared, it looks like you want to remember the filtering parameters while going to another page and then returning to the list. In my application I implemented popup modals to handle commands, leaving jqGrid in the background. Another solution is to keep the filtering parameters in the session, but that can lead to confusing behavior if a user opens two copies of the same page.

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

Sidebar

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.