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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:28:28+00:00 2026-05-30T03:28:28+00:00

I need to do something like the following: On the page, when a checkbox

  • 0

I need to do something like the following:

  1. On the page, when a checkbox state is changed, do an jQuery AJAX call to the server to set the state of the checkbox.
  2. Refresh a jqGrid which will use this value (another AJAX call).

There is no post.

In ASP.Net, I would set the value in the viewstate and use it from there. However, viewstate is not valid in MVC.

Where can I store this value so it will be available on all subsequent calls to this page for this session?

  • 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-30T03:28:30+00:00Added an answer on May 30, 2026 at 3:28 am

    Isn’t the box still checked? Just reuse the value from the client. If you’re replacing it when you get the result via AJAX, you should be setting the value in the model before the (AJAX) response is returned so it has the proper value on the client. If the box represents some sort of preference, chosen once then applicable across all pages, then store it in the session or in some persistence mechanism (cookie, SQL server DB, RavenDB), retrieving it from there as needed.

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

Sidebar

Related Questions

I need something like this http://jonraasch.com/blog/a-simple-jquery-slideshow but w/o the absolute positioning. Is it possible?
I'm wondering if the following may be possible using something like jQuery. I've looked
I'd like to do something like the following within a jade template. include page-content/#{view.template}
I have the following Ajax call which send form data to a page and
I need something like make i.e. dependencies + executing shell commands where failing command
Ok, I need something like this: datediff(second, date_one, date_two) < 1 dates are stored
I need to add full web search to my site. I need something like
Normally, we get first value that way: $(#color option:first).val() But I need something like
I need something simple like date , but in seconds since 1970 instead of
What I need is something like this: /<[\w\d]+ ([\w\d]+\=[w\d])+\/>/ Something that would match several

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.