如何在asp.net中读写xml文件 [英] How to read and write xml file in asp.net

查看:85
本文介绍了如何在asp.net中读写xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨开发者。

请阅读本文。

当我谷歌寻找某些东西时,我发现有用的链接大多数我复制链接并存储在文本文件中。

现在我想要一些不同的东西我想在asp.net中创建一个xml文件并从aspx页面一直保存xml文件中的链接,每当我需要查看我可以从xml文件中做的任何链接通过aspx页面。



i希望按组存储日期。

示例

sqlqueries

http://www.fdfdfdfdf

http://www.dfdfdf.fdf



Javascript

< br $>
http://www.fdsfdsf





我想在gridview中查看这个



请求帮助我

Hi developers.
Please do read this.
When i google for something sometime i find useful links mostly i copy that links and store in a text file.
Now i want something different i want to create an xml file in asp.net and save the links in xml file all the time from aspx page, whenever i need to view any link i could do from xml file through aspx page.

i want to store date groupwise.
example
sqlqueries
http://www.fdfdfdfdf
http://wwwdfdfdf.fdf

Javascript

http://www.fdsfdsf


I want to view this in gridview

pleas help me

推荐答案

在数据集中有readXml和writexml方法使用这两种方法。

我认为它会起作用。
In data set there is readXml and writexml method use this two method.
I think it will work.


使用XMLReader和XMLWriter类,将完成你的工作。
Use XMLReader and XMLWriter class, will do your work.


check这些:



http:/ /www.c-sharpcorner.com/uploadfile/mahesh/readwritexmltutmellli2111282005041517am/readwritexmltutmellli21.aspx [ ^ ]



读取/写入XML文件,配置文件,INI文件或注册表 [ ^ ]



http://www.aspnettutorials.com/tutorials/database/XML-Csharp.aspx [ ^ ]



希望这有助于:)
check these out:

http://www.c-sharpcorner.com/uploadfile/mahesh/readwritexmltutmellli2111282005041517am/readwritexmltutmellli21.aspx[^]

Read/Write XML files, Config files, INI files, or the Registry[^]

http://www.aspnettutorials.com/tutorials/database/XML-Csharp.aspx[^]

hope this helps :)


这篇关于如何在asp.net中读写xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆