What I want to do:
-Have the user browse for a xml file, select it and have it save into the database.
-Have the xml file that was browsed and selected display all it's data on a DataGrid after
browsing for the file.
-Have another datagrid in the page that contains all previously uploaded xml files.
-In the imported xml files, I want to validate that the imported does not
What I have done:
-Used the OpenFileDialog to have the user browse for an xml file, select it and display the path in a textfield.
-Created classes based on the XML file
-Attached (call) a deserialization method to browse file path
-Set up tables in my DbContext using DbSet.
-Started writing a method that contains a select query to grab data from database to display on datagrid.
So far, when I used a select query to see if there's any data stored in the database after having a user select an xml file.... there's no data stored. I'm not sure why? What am I missing? How do I grab the data from the xml file and store it in the database? I thought deserializing it would work. Perhaps, I'm missing a logical step here. What, in words, is typically done to import xml files, store the data in a database and grab the data onto the view? Conceptually, what are the steps involved in something like this? This will allow me to cross-check myself.
This post has been edited by Eowyn27: 22 April 2014 - 09:26 AM