I am using asp.net mvc 1.0 and I want to return an XML file, but I also want to return strongly typed data to update some fields.
Like an XML file, it will contain users that have not been inserted into the database. So I want this to appear as a save dialog that asp.net mvc return file () will do.
However, I also want to return to the page, for example, such as the number of users who could not be added, how many users added, etc.
So, I want to use scafolding with the class file I want to pass. If it was a view, I could pass it as an object model, but I do not see the parameter for this in File ().
I also do not want to save the xml file to the hard drive, which I want to do with memory. So you have a link that will appear on the page to download the file and show that the data I want will not be desirable.
source
share