Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rendering as HTML

Status
Not open for further replies.

charleswalstrum

Technical User
Nov 23, 2003
10
US
I use Dreamweaver MX 2004, Access 2002 database, ASP, and MS IIS5. With that said I'd like to enter html code in to an Access Database via a form. "I can do that" I'd like the code to render on the page as text with the html formatting.
How do I do that?
Is it an Access issue or Dreamweaver/ASP?
Thank you.
I get text with no formatting now.
Thanks.
 
In my experience if you put html code into the database, thats what it'll spew out.

Try putting the html code into the database. Now open the database in access and look at the code - is the html still there or just the plain text?

--
Olly
 
Ok, I inserted the code in to the access database manually. When I view the page that has the recordset feild on it, I get the actual html code, tags and all instead of the html formatting.
What should I do? I've tried the formatting tags through Dreamweaver. I think I need to do some hard coding. I just don't know where or how.
Thanks.
 
Can you give us an example of the full text that is in the databaseincluding the html tags.

Also where are you displaying this text string? Straight on the page, in a forms textarea or where?

Cheech

[Peace][Pipe]
If you don't stand up for something, you'll fall down. Toke it Easy.
Howard Marks. Visit the forum at
 
Here is a sample, just straight code. I'm displaying on the page using the Dreamweaver MX 2004 recordset. I drag and drop the recordset feild on the page and publish it on my asp server.

<p><strong><font color=&quot;#006633&quot; size=&quot;5&quot;>Your
home is a major investment.</font></strong> </p>
<p><strong>When it comes to protecting that investment from the destructive
forces of termites, it only makes sense to turn to a leader in termite
control. In fact, Coastal Pest Control has been in the industry since
1991, we've been protecting homes like yours ever since. </strong></p>
<p><strong>Through the years, we have built on this foundation by continuing
to develop and test new methods of termite control. Our mission has
been, and always will be, to ensure that we successfully provide homeowners
like you with the best termite protection available - guaranteed.</strong></p>
<p> <strong><br>
<br>
The biggest problem with termites is that you usually don't see them
or the damage they cause until it's too late. In fact, the annual cost
of termite damage to homes in the U.S. is greater than that of fires,
storms and floods combined!</strong></p>
<p><strong>Termites are extremely well organized and they can find a way
inside your home, regardless of its construction. That's why Coastal
Pest Control offers advanced treatment methods for termite control and
elimination.<br>
<br>
Subterranean Termites<br>
As their name implies, subterranean termites live in the soil. In the
past, they have been difficult to control because their nests are deep
underground and their colonies can contain up to one million members.
When they find a reliable food source, they'll return to it again and
again.</strong></p>
<p><strong>Drywood Termites<br>
Unlike their subterranean cousins, drywood termites do not need to maintain
contact with the ground for moisture. As a result, they require a completely
different treatment. If your home is attacked by drywood termites, tent
fumigation is the most effective option to combat an infestation.</strong></p>
<p><strong> </strong><br>
</p>

On the page it displays the tags just as it does here. I'd like it to display using the html formatting.

Thank you.
 
I stuck that in a database and it is displayed on the page as you would wish it to be, so can you post the page code

Cheech

[Peace][Pipe]
If you don't stand up for something, you'll fall down. Toke it Easy.
Howard Marks. Visit the forum at
 
Thanks, I had added the format encode.htmlencode or something like that. Once i took it off it worked like a charm.
I feel dumb now.. LOL
THanks for your help
 
No probs thanks for posting the solution for others

Cheech

[Peace][Pipe]
If you don't stand up for something, you'll fall down. Toke it Easy.
Howard Marks. Visit the forum at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top