数据库到XML文件asp.net [英] Database to XML file asp.net
问题描述
你好,
我正在创建一个页面,其中 Page_Load
。
我从数据库中获取数据并将其写入 XML
文件。
我的问题是我在数据库中有很多数据,所以在创建 XML
文件时,这需要花费很多时间,这对我来说不起作用。 />
我需要在2至3秒内写入数据。
请,我真的需要帮助来写数据。
我从以下方面获得了帮助:
< a href =http://stackoverflow.com/questions/3523366/whats-the-best-way-to-write-and-download-xml-file-in-asp-net>什么是最好的写作方式和在asp.net下载xml文件? [ ^ ]
提前致谢。
添加链接文字以反映文章标题。
更正了格式问题。
[/编辑]
Hello,
I'm creating a Page in which, while Page_Load
.
I'm taking the data from the database and writing it to the XML
file.
My problem is I'm having a lot of data in the database so while creating the XML
file it is taking a lot of time, which is not working for me.
I need to write the data in 2 to 3 seconds.
Please, I really need help to write the data.
I took the help from :
What's the best way to write and download xml file in asp.net?[^]
Thanks in advance.
Link text added to reflect the article title.
Corrected formatting issues.
[/Edit]
推荐答案
您操作数据的任何类型的文件将取决于数据大小。
所以,如果你有大量的数据,那么需要时间。
我猜,有别的出路。
Any type of File you operate data on, will depend upon the Size of Data.
So, if you have large amount of Data, then it will take time.
I guess, there is no other way out.
这篇关于数据库到XML文件asp.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!