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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:52:09+00:00 2026-05-13T06:52:09+00:00

I am iterating through a List of custom data objects and outputing the data

  • 0

I am iterating through a List of custom data objects and outputing the data to the screen in a pageable format. Each item needs to offer the ability to edit the details (a redirect to another view) and to remove the data. In order to do this I will need to pass an id of some sort to identify the record that is going to be updated or deleted. I do not want to include this id as plain text in the route values but am at a loss for how to implement this functionality. I have two ideas but am not sure if either would be viable.

  1. Create a random key for each id each time the list is generated and store the key/id combo in sesion. I could then pass the key in the route values and grab the key when the user clicks an action. this seems like a lot of work

  2. Wrap the “edit” and “remove” options in a form where I can use a hidden input to pass the data via POST. This seems less that desirable however.

Is there any standarzied way to utilize sensitive data within a View / Controller relationship when I am working with more than one item on a page?

  • 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-13T06:52:09+00:00Added an answer on May 13, 2026 at 6:52 am

    Just encrypt the sensitive data before it gets to the view. And send up the encrypted value and decrypt at the controller. Example:

    public ActionResult RenderPage()
    {
       CustomerInformation customerInformation = CustomerInformation.GetCurrentCustomer(); 
       customerInformation.SocialSecurityNumber = MyNamespace.Utilities.Encrypt(customerInformation.SocialSecurityNumber);
       return View(customerInformation);
    }
    

    and in the response you could do this.

    public ActionResult SubmitData(CustomerInformation customerInformation)
    {
       customerInformation.SocialSecurityNumber = MyNamespace.Utilities.Decrypt(customerInformation.SocialSecurityNumber);
       return View();
    }
    

    As you can see the data is encrypted before it goes out, and on the way back it gets decrypted again. Of course you can also use HTTPS and that should be really secure as well.

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

Sidebar

Ask A Question

Stats

  • Questions 275k
  • Answers 275k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It is a defect in the current standard: http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#280 Edit:… May 13, 2026 at 2:39 pm
  • Editorial Team
    Editorial Team added an answer You can use WCF tracing to log the raw XML… May 13, 2026 at 2:39 pm
  • Editorial Team
    Editorial Team added an answer Well, your initial problem would be that it's not an… May 13, 2026 at 2:39 pm

Related Questions

I am writing a web part against a list. The first thing I do
So in my view controller, I run code to populate an NSArray of Customer
I am building a .NET MVC app that has a page with a list
I have an application that is made up of the following: A central database
I'm cleaning some of the Python code I wrote when I was...not as knowledgeable.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.