开发者

How to store form data in xml in asp.net MVC

开发者 https://www.devze.com 2023-03-14 21:36 出处:网络
I was wondering if there开发者_Python百科 is any way to save form values in an xml format and reload it later.

I was wondering if there开发者_Python百科 is any way to save form values in an xml format and reload it later.

I want to pass in my model (containing all form values) and save the form content in an xml file.

Many thanks

Sandra


Found a way to do this by serializing my model to xml by using the DataContractSerializer and them save the MemoryStream

0

精彩评论

暂无评论...
验证码 换一张
取 消