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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:17:43+00:00 2026-05-26T18:17:43+00:00

Explanation: I have a grid with a checkbox column where users can check records

  • 0

Explanation: I have a grid with a checkbox column where users can check records they want to view details of. Each checkbox has a value of the ID of that object. I want to then pass these values to a controller action so that I can render a paged view, as it were.

Now, what I have right now is technically working, but it’s ugly and something tells me there’s a better way. Right now I’m creating a JSON string of the array values and passing that, so the route ends up looking like “/Products/Details/[“4″,”5″,”6″]”

Now, as I said, this works and I can parse out the values in the controller, but something tells me I shouldn’t have to. Am I missing something simple, or does someone know of a decent way of doing this? The number of values can be arbitrary based on what the user has selected, so I can’t create a custom route (I don’t think, anyway).

Thanks, all.

  • 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-26T18:17:44+00:00Added an answer on May 26, 2026 at 6:17 pm

    If you haven’t read Phil Haacked – Model Binding To A List I would highly recommend starting there, it should help alot.

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

Sidebar

Related Questions

I have a database with about 10,000 records. Each record has one text field
I have a problem for querying records into mysql explanation below The user could
Does anyone have a good explanation why the ? extends syntax has to be
I have a System.Windows.Forms.Button control, and I want to add a hover-text explanation of
I have a UserControl containing interactive elements within a grid. The user can move
Explanation: i have few objects and im declaring them inside $(document).ready(). WHY? because in
Explanation I have a multidimensional array that is iterated over to created a categorized
Q1: Is there something like too much ajax?? Explanation: I have been seeing programmers
I have looked for some explanation on the exact usages for the set of
I have scoured the web for a decent explanation of the routing syntax in

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.