I was trying to print a raw xml string. Browser was omitting the xml tags at the time of display. Then I searched through the internet and found that ASP.Net has a pretty cool widget named Literal. Using this widget, it is very simple to print xml string without the xml tags omitted by the browser. Here is an example code snippet:
1) Add the literal object.
2) Then just use this literal object like a label:
Literal1.Text = XMLString;
Is not it cool!!!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment