Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Friday, March 4, 2011

ASP.Net: Printing raw xml .

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!!!

Friday, February 18, 2011

Finding HTML controls from ASP.NET

Here is the article that says ins and outs of this issue.

http://www.asp.net/master-pages/tutorials/control-id-naming-in-content-pages-cs

** I believe when there are so many quality tutorials over the web, I do not really need to write one of my own unless the topic is something unique**