PC Review


Reply
Thread Tools Rate Thread

How To Display Formatted Text with ASP.NET ?

 
 
kbolster20@yahoo.com
Guest
Posts: n/a
 
      28th Jan 2005
Hello,

I think there must be an obvious solution to this problem:

I have a file that I want to read into a web page when the page is
loaded. The file will contain formatted text (bold, italics, colored
text etc). The file will most likely be in in HTML format but that can
be changed if necessary.

What asp.net (or anything else i can use in an aspx page) control can I
load this file into to retain the formatting? I will also need to have
a vertical scrollbar as the text may be variable in length from day to
day but needs to take a up a static amount of space on the page.

Any help would be greatly appreciated. This seems very simple, so I
think I'm missing a major point here.

Thanks in advance,
Kathryn

 
Reply With Quote
 
 
 
 
23s
Guest
Posts: n/a
 
      28th Jan 2005

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> The file will most likely be in in HTML format
>
> What asp.net (or anything else i can use in an aspx page) control can I
> load this file into to retain the formatting?


You could try something along these lines (VB):

Dim myScrollingFileContents as New LiteralControl

myScrollingFileContents.Text = "<div overflow=scroll>" & strMyFileContents &
"</div>"

My overflow syntax might be a bit off, might wanna google that.


 
Reply With Quote
 
kbolster20@yahoo.com
Guest
Posts: n/a
 
      28th Jan 2005
That seems to work on the code side, how would I get that control
(myScrollingFileContents) to show on the browser side aspx page? How
would I add it into the HTML code?

Thanks!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can Word display HTML code as formatted text? =?Utf-8?B?QnJlbnQ=?= Microsoft Word Document Management 2 29th Jun 2011 08:11 PM
Re: display rtf formatted text on a form François Uldry Microsoft Access Form Coding 0 14th Feb 2004 01:49 AM
Re: display rtf formatted text on a form Andy Debaere Microsoft Access Form Coding 0 15th Jan 2004 05:45 PM
How to display/edit formatted text from a database? Phil Microsoft ADO .NET 2 20th Nov 2003 03:57 PM
How to display a formatted message in plain text? Dan Microsoft Outlook VBA Programming 0 30th Jun 2003 06:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:33 PM.