0

I have articles written formatted in html, and I would like to display it inside my asp.net page.

Please help

2
  • do you have examples of how you're displaying the articles now? What's it not doing? Commented Nov 24, 2010 at 15:40
  • i have tried to read htm file with simple text reader (it creates one big string), and then to assign that string to part of my page. but it looks like html tags are lost during text reading operation... Commented Nov 24, 2010 at 15:47

4 Answers 4

4

Just use it as is.

If you place HTML in an aspx page, it will remain unchanged.


Seeing as you want to display several HTML pages within another, you can use html FRAMEs.

Sign up to request clarification or add additional context in comments.

2 Comments

But i am using multilanguge page, and those articles are detached from my asp.net page because I display it according to chosen language? Thanks
ok i understand that. but i have default.aspx and englisharticle.html, and frencharticle.html. I want to display those html files in one part of aspx page. is there simething like: literal1.text=readhtml(englisharticle.html);
3
<iframe src="simple.html" border="0" frameborder="0" height="600" width="800"></iframe>

Comments

0

You can display them inside an iframe.

2 Comments

does anybody know what is asp.net control which does the same like iframe
ok i found out. i should have been using id tag for i frame, and then addattribute src dynamicly. thank you all
0

Is this an entire Html page - in which case is there a need for the aspx page at all.
Or is this just formatting tags, e.g. <b>bold heading</b> ?

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.