Dev1
Dev1
CC#
Created by Dev1 on 6/16/2023 in #help
❔ Unable to Save Updated Data from Editable Table in ASP.NET MVC
Hey everyone, I hope you're all doing well. I'm reaching out to this amazing community seeking guidance and support as I venture into the world of C# and ASP.NET. As a newcomer, I would truly appreciate any assistance you can provide. Currently, I'm working on an ASP.NET MVC application that involves implementing a crucial feature: importing data from a CSV file into a SQL database table. The process includes selecting a specific database and table, uploading the desired file, and displaying its contents in an editable table format. Users have the ability to modify the data within the table, and upon submission, the intention is to save the updated information back to the database. However, I've encountered an issue that has left me quite perplexed. Although the initial import and display of the data work flawlessly, the problem arises when attempting to save the modified table data back to the database. Unfortunately, the changes made by the user are not being reflected in the database as expected. To provide you with a comprehensive understanding of my situation, I have attached three files: ImportController.cs, ImportModel.cs, and Upload.cshtml. Due to the lengthy code, it was more feasible to share them as attachments. Additionally, I have included a demo showcasing the current functionality to help visualize the issue I'm facing. I must admit that I'm at a loss regarding the appropriate steps to take from here, and that's why I'm reaching out to this amazing community. Your advice and guidance would be incredibly valuable and sincerely appreciated. Thank you all so much for your time and support.
9 replies