473,473 Members | 2,141 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How To Display Formatted Text with ASP.NET ?

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

Nov 19 '05 #1
2 2395
23s

<kb********@yahoo.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
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.
Nov 19 '05 #2
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!

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Paul | last post by:
I have a text file that I am trying to display on a web page. If I cat or more the file it formats and displays fine. When it comes up in the browser it seems to loose tabs and the format gets...
6
by: James Turner | last post by:
I am trying to store formatted text (windows format) into a MySQL database and then retrieve it. The field in the database is a varchar. I cut and paste the test into a form field formatted, then...
5
by: Richard | last post by:
I am filling a TEXTAREA with text and links from a database. I need to display the <a href....> code in the TEXTAREA as a clickable link with _blank targetting. I realise I could simply use a TD...
2
by: Steven T. Hatton | last post by:
I'm still not completely sure what's going on with C++ I/O regarding the extractors and inserters. The following document seems a bit inconsistent:...
0
by: Ben | last post by:
Hi, Can you display data, for example datagrid, in a "Formatted Excel Form" dynamically? I mean the data in datagrid will be display on the webpage as Full Formatted Excel like frame, different...
3
by: Craig Petrie | last post by:
Hi, I have a large table in Word 2003 that has formatted text in the cells and wish to read and convert a cells formatted contents to html output via vb.net code. The formatting contains the...
0
by: Barb | last post by:
Has anyone seen this happen? I have pages with <asp:Textbox> and <asp:DropDownList> controls on them. Some of them display differently. Some are recessed with the left & top borders being gray...
24
by: Adam | last post by:
Hi, Does anyone know of an online C-to-HTML converter to display code nicely formatted in a browser? Thanks a lot, Adam
2
by: Sam | last post by:
I have been able to take rft text stored in a SQL database and display it in a RichTextBox control on a windows form. Is there any way to do something similar in an ASP.Net page. I do not see...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.