Search:
Namespaces
Discussions
.NET v1.1
Feedback
Display html from database in richtextbox
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngrichtextbox' list
.
L.Illya.Haynes@WellsFargo.COM
Hi,
I've been running into a wall on this one. Should be a very easy answer,
I'm just too new at this, I guess.
Using VB, I'm able to put the information entered into the richtextbox into
an access database as html, and I can later retrieve that data (as html)
from the database. Problem is, I am unable to display that information back
into the richtextbox editor for someone else to manipulate. I would want it
to show up in the text area as the formatted text, and not as html code. I
tried myRTB.Textxhtml = mydatabaseinfo, but get an error message that
Textxhtml is readonly.
This seems like a very fundamental function of richtextbox, but I have been
unsuccessful in my searching for an answer on this one.
Any help appreciated!
illya
Reply to this message...
Ollie Cornes
Hi Illya,
To set the value of the
RichTextBox
document, use the Text property. The
TextXhtml and TextPlain properties are additional ones that mean you can
get at the data in the document but with some processing applied - this
is why they are read-only.
Does that answer your question?
Ollie
--
http://www.richtextbox.com/
The lightweight content editor for ASP.NET
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
] On Behalf Of
Click here to reveal e-mail address
Sent: 12 July 2002 20:19
To: aspngrichtextbox
Subject: [aspngrichtextbox] Display html from database in richtextbox
Hi,
I've been running into a wall on this one. Should be a very easy
answer, I'm just too new at this, I guess.
Using VB, I'm able to put the information entered into the richtextbox
into an access database as html, and I can later retrieve that data (as
html) from the database. Problem is, I am unable to display that
information back into the richtextbox editor for someone else to
manipulate. I would want it to show up in the text area as the
formatted text, and not as html code. I tried myRTB.Textxhtml =
mydatabaseinfo, but get an error message that Textxhtml is readonly.
This seems like a very fundamental function of richtextbox, but I have
been unsuccessful in my searching for an answer on this one.
Any help appreciated!
illya
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
Reply to this message...
Jeff Widgren
Try this:
myRTB.Text = mydatabaseinfo
Jeff Widgren
iArchitex
Click here to reveal e-mail address
http://www.iArchitex.com
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
]
Sent: Friday, July 12, 2002 2:19 PM
To: aspngrichtextbox
Subject: [aspngrichtextbox] Display html from database in richtextbox
Hi,
I've been running into a wall on this one. Should be a very easy
answer, I'm just too new at this, I guess.
Using VB, I'm able to put the information entered into the richtextbox
into an access database as html, and I can later retrieve that data (as
html) from the database. Problem is, I am unable to display that
information back into the richtextbox editor for someone else to
manipulate. I would want it to show up in the text area as the
formatted text, and not as html code. I tried myRTB.Textxhtml =
mydatabaseinfo, but get an error message that Textxhtml is readonly.
This seems like a very fundamental function of richtextbox, but I have
been unsuccessful in my searching for an answer on this one.
Any help appreciated!
illya
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
Reply to this message...
System.Windows.Forms.RichTextBox
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com