473,327 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

How do I read html out of database fields and show it

I have database text fields that I am putting "<br />" in so that they
will appear on the web page with linebreaks in the text where I want
them. But when the fields are shown, this does not work - the source
looks like &lt;br /&gt;. How do I get around this?
Thanks,
Marv
Jul 3 '08 #1
3 1560
JJ
Use a literal rather than a label to display it?
JJ
<CO*********@lycos.comwrote in message
news:bb**********************************@f36g2000 hsa.googlegroups.com...
>I have database text fields that I am putting "<br />" in so that they
will appear on the web page with linebreaks in the text where I want
them. But when the fields are shown, this does not work - the source
looks like &lt;br /&gt;. How do I get around this?
Thanks,
Marv

Jul 3 '08 #2
They are displayed using which controls ?

See :
http://msdn.microsoft.com/en-us/libr...tmlencode.aspx

(this is a defautl safety measure but you can disable this if needed)
--
Patrice

<CO*********@lycos.coma écrit dans le message de groupe de discussion :
bb**********************************...oglegroups.com...
I have database text fields that I am putting "<br />" in so that they
will appear on the web page with linebreaks in the text where I want
them. But when the fields are shown, this does not work - the source
looks like &lt;br /&gt;. How do I get around this?
Thanks,
Marv

Jul 3 '08 #3
The HTML is being encoded. Its HtmlEncode being used or the database is
encoding the HTML. Learn how to avoid encoding the data and store it as
unencoded HTML.

<CO*********@lycos.comwrote in message
news:bb**********************************@f36g2000 hsa.googlegroups.com...
>I have database text fields that I am putting "<br />" in so that they
will appear on the web page with linebreaks in the text where I want
them. But when the fields are shown, this does not work - the source
looks like &lt;br /&gt;. How do I get around this?
Thanks,
Marv
Jul 3 '08 #4

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

Similar topics

0
by: JPRW | last post by:
Hello All. I am having issues with the visualbasic gramatic for the following scenario: I am retrieving information from an Access 2000 Database. The current fields are: ebay, which is a...
2
by: Jayjay | last post by:
When it comes to access, I'm pretty good using the built in features and can come up with some pretty complex functions to get what I need. But we have this database I'm doing for work that is...
1
by: JPRW | last post by:
Hello All. I am having issues with the visualbasic gramatic for the following scenario: I am retrieving information from an Access 2000 Database. The current fields are: ebay, which is a...
8
by: james | last post by:
I am trying to use Filestream to read a file ( .DAT) that contains values in HEX that I want to convert to text. I know the different offset addresses for each portion of the data I am trying to...
15
by: philip | last post by:
On a form, I have a datagridview. This datagridview is constructed on a dataset filled by a tableadapter. The table adapter do very well what it must do when filling dataset. Insertions,...
3
abdoelmasry
by: abdoelmasry | last post by:
Hi Friends i need help in sessions im passing variables between pages using sessions this is the main page thats mean the home page the main page have table to show messages for users , it have...
15
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
5
by: =?Utf-8?B?bXBhaW5l?= | last post by:
Hello, I am completely lost as to why I can't update a DropDownList inside a DetailsView after I perform an insert into an object datasource. I tried to simply it down to the core demostration:...
2
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi Is there any way to Read an INIFile from a string or Stream instead of a physical file ??? I want to read the INIFile into a string then store in a db but when I read the string from the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.