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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:00:57+00:00 2026-05-14T00:00:57+00:00

What is the most standard or best way to persist data between requests? Should

  • 0

What is the most standard or best way to persist data between requests?

Should I use cookies or session variables? I’m interested in keeping data like sort order, sort column, and page number (for paginiation).

I’m coming from a webforms background so normally this type of thing was automatically handled for me in the viewstate of the controls I was using.

update

I like the querystring idea, for searching and more meaningful URLs; however, I’m working on an “index/list” view, which consists of a View with header, and “control” options, like DDLs for filtering and a partial view that renders the table of data.

The DDLs use a $.load() to call an ActionResult on the controller, which returns the partial view, passing parameters there in the querystring, but since these are ajax requests the main page url of the user’s browser does not get updated.

Is there a best-practice for taking querystrings off the main-page URL and using them in ajax requests to other ActionResults?

  • 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-14T00:00:57+00:00Added an answer on May 14, 2026 at 12:00 am

    If you want it to survive only through one request/redirect TempData is your friend.

    However, for things like your pagination, URL is the best method, for the ability to share links alone.

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

Sidebar

Related Questions

What is the best/standard way to put common variables and functions in Zend framework
I am looking for the most standard way to achieve modal dialogs in ASP.NET
What is the best way (most intuitive to users) or best practice for displaying
I'm interested in finding out the best way to measure the execution time of
I am wondering what is the best (e.g. most efficient, commonly accepted, industry standard)
What would be the best way to implement a most-recently-used cache of objects? Here
Most texts on the C++ standard library mention wstring as being the equivalent of
Most functions for generating lognormally distributed random numbers take the mean and standard deviation
I have a form with most of its functionality implemented using standard TAction. I
I refactor some classes from standard SQL to JPA/ORM usage. In most cases the

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.