❔ 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.
8 Replies
some of your files are too big for expanding on discord - could you $paste them?
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
Hello, thank you for replying to me. I have added the code to "paste.mod"
Here is the link: https://paste.mod.gg/mlooxcyrjrnz/0
BlazeBin - mlooxcyrjrnz
A tool for sharing your source code with the world!
I'm not a front end guy, but I can't see where you add the changes to the original file content
Ah, yes. I am sorry but if you don't mind, can you please help me out regarding this. I am extremely new to this and am alone on my team.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.I was not able to solve this. 😕
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.