3
Contributors
8
Replies
10
Views
8 Years
Discussion Span
Last Post by kameswari
0
string xmlData = System.IO.File.ReadAllText(@"C:\test.xml");
      System.IO.File.WriteAllText(@"C:\test.xml", xmlData);
0

Hi Riyas,
as earlier suggested.. you can directly write that xml file into a string and you can print on the webpage.


here textbox1 is a textbox with multiplelines...

protected void Page_Load(object sender, EventArgs e)
    {
        string xmlData = System.IO.File.ReadAllText(@"C:\test.xml");
        System.IO.File.WriteAllText(@"C:\test.xml", xmlData);
        TextBox1.Text = xmlData;
    }
0

I'm from Atlanta, Georgia.

Please mark this thread as solved if your question has been answered and good luck!

0

hi daily i will browse these forums ... there is no specific time for browsing ...Anyways to day i'm leaving a bit early.....

bye...

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.