.NETGURU
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




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification