Click here to Skip to main content
16,017,857 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
hi
  I want to display the below text file as it is in my web page. It shouldn't be inside textbox and iframe.

text file:

<!DOCTYPE html>

<html>

<head>

<script type="text/javascript">alert('hello');</script>

</head>

<body load="call()">

<h1>My First Heading</h1><pre lang="HTML">

<p>My first paragraph.</p>

</body>

</html>


please suggest me.
Thanks Prafulla
Posted

If you want to show it in the same page, you can just paste the contents of the html body between your panels.

If your html content will change in future, and you want it to remain a different page, use an iframe and set it to display your html page.

If you want to combine both, you can use a asp.net Literal control, read the contents of your html page and set the contents of the html to the Text property of Literal.
 
Share this answer
 
Comments
Prafulla Sahu 21-Aug-13 2:48am    
Thanks a lot for your reply ridoy but I did it
ridoy 21-Aug-13 3:07am    
So then,what's the problem still?
Try using <xmp></xmp> Tag .
which takes your code as example block

The HTML Example Element (<xmp>) renders text between the start and end tags without interpreting the HTML in between and using a monospaced font

xmp-Tag[^]
 
Share this answer
 
v3

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