By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,613 Members | 1,890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,613 IT Pros & Developers. It's quick & easy.

How to dynamically load an .ascx with markup text from a file.

P: n/a
I have a to create a page that according the parameters it takes, it
has to read a .txt file from disk and display as the content. The .txt
file contains html text.

The display page is composed of a header, content and footer webuser
controls. The "content" user control is the one that should display the
content.

The firs idea I had was to simple setup a <p> and in server side fill
it with the value of the file. Well that didn't work that greate, since
the txt file already contains a lot of markup.
So, how can I "render" the txt file directly to the .ascx document ?

Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
How about inserting a Literal control and getting the text content into it?

Ken

<ro**********@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I have a to create a page that according the parameters it takes, it
has to read a .txt file from disk and display as the content. The .txt
file contains html text.

The display page is composed of a header, content and footer webuser
controls. The "content" user control is the one that should display the
content.

The firs idea I had was to simple setup a <p> and in server side fill
it with the value of the file. Well that didn't work that greate, since
the txt file already contains a lot of markup.
So, how can I "render" the txt file directly to the .ascx document ?


Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.