Click here to Skip to main content
15,884,177 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Updated 6-Jul-11 0:13am
v2
Comments
Sergey Alexandrovich Kryukov 6-Jul-11 11:29am    
Remove ASP.NET from the title and the tags. The question is about .NET, has nothing to do with ASP.NET.
--SA

In data set there is readXml and writexml method use this two method.
I think it will work.
 
Share this answer
 
Use XMLReader and XMLWriter class, will do your work.
 
Share this answer
 
You can do it on different levels I overview below:


  1. Use System.Xml.XmlDocument class. It implements DOM interface; this way is the easiest and good enough if the size if the document is not too big.
    See http://msdn.microsoft.com/en-us/library/system.xml.xmldocument.aspx[^].
  2. Use the class System.Xml.XmlTextReader; this is the fastest way of reading, especially is you need to skip some data.
    See http://msdn.microsoft.com/en-us/library/system.xml.xmlreader.aspx[^].
  3. Use the class System.Xml.Linq.XDocument; this is the most adequate way similar to that of XmlDocument, supporting LINQ to XML Programming.
    See http://msdn.microsoft.com/en-us/library/system.xml.xmldocument.aspx[^], http://msdn.microsoft.com/en-us/library/bb387063.aspx[^].


—SA
 
Share this answer
 
instead of it make a text file and put proper your code i think that will be more beneficial for you.bcos i do so and i got a lot of advantage.
if you need code of any and all my code text file which can be understand easilly,then i can give you
regards:
rajendra patel jat
jat16may@gmail.com
9826942718
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900