C
C#13mo ago
Dev1

❔ 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
phaseshift
phaseshift13mo ago
some of your files are too big for expanding on discord - could you $paste them?
MODiX
MODiX13mo ago
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!
Dev1
Dev113mo ago
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!
phaseshift
phaseshift13mo ago
I'm not a front end guy, but I can't see where you add the changes to the original file content
Dev1
Dev113mo ago
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.
Accord
Accord13mo ago
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.
Dev1
Dev113mo ago
I was not able to solve this. 😕
Accord
Accord13mo ago
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.
Want results from more Discord servers?
Add your server
More Posts