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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:20:48+00:00 2026-05-13T22:20:48+00:00

Long story short, the database I’m using needs to get looked at. Until that

  • 0

Long story short, the database I’m using needs to get looked at. Until that happens, I need to make do with what I’ve been given (I know, I should fix it..).

I have a table that get populated via an external text file. I am not sure of the exact process as I’m relatively new to the company.

The table does not have a primary key as the entire table is dumped and re-loaded every quarter when there is a new text file.

Enter ASP.NET MVC. I need to display that table with checkboxes in a grid so the user can select some rows and send it back to the server. It sounds relatively easy, but I am really not sure what to put as the value for the checkboxes as I am pretty sure I’ll need to use multiple columns to create a unique. Yep, I know, I know :).

OldTable
- Field1
- Field2
- Field3
...
- FieldN

The View

...
<input type="checkbox" 
  name="bunchOfStuff" 
  value"Field1Value,Field2Value,Field3Value"/>
...

Would something like this work? If I can create a key with a few fields, can I use those fields as the value in the checkbox? I realize my action will be a bit ugly as I’ll have to split and parse each value in the array of values.

  • 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-13T22:20:48+00:00Added an answer on May 13, 2026 at 10:20 pm

    Wow, good luck with this!

    I think your solution will certainly work and I can’t think of a more elegant solution.

    However I think you’re going to be in deep trouble down the line. The thing that I would do would to be simply to put a Unique Identifer on the table that auto increments.

    That shouldn’t affect any of your processes or even your bulk insert application unless you insert using an ordinal field offset rather than named.

    Sorry this answer isn’t exactly what your looking for but the DB is just so bad that (any) answer presented I think will be equally bad.

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

Sidebar

Related Questions

It's a rather long story but to make it short I need to store
Long story short, I have a substantial Python application that, among other things, does
To make a long story short I have to use processing in a class
To cut a long story short: As part of an online database access system
Long story short, I have a SQL file that I want to import as
Summary Long story short, we've been tasked with gutting the authentication and authorization parts
Ok - long story short. Have an e-comm site hosted on Windows VPS using
Long story short, I took over a project and a table in the database
To make a long story as short as possible (ignore this paragraph if you
Long story short, I'm taking a bunch of excel documents one by one, and

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.