Re: Using html tags pulled from an Access database in ASP page
From: Alan Howard (Xalan.howardX_at_Xparadise.net.nzX)
Date: 06/10/04
- Next message: Aaron [SQL Server MVP]: "Re: Using html tags pulled from an Access database in ASP page"
- Previous message: Alan Howard: "Re: CreateObject not working in Win2003"
- In reply to: BCS: "Re: Using html tags pulled from an Access database in ASP page"
- Next in thread: Aaron [SQL Server MVP]: "Re: Using html tags pulled from an Access database in ASP page"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 10 Jun 2004 13:09:21 +1200
If a user enters a carriage return in a textarea it will be stored - no need
to worry about the how. Keep in mind that you want to separate the content
(what they type in) from the presentation (how or where it gets displayed).
Take whatever they type into the textarea and shove it into the database.
Transform it appropriately depending on what it's used for *after*
retrieving it. If you're displaying it on a web page then you can replace
vbCrLf pairs with <br> tags and Server.HTMLEncode the rest.
Alan
"BCS" <bruce_schaaf@hotmail.com> wrote in message
news:e162e1fd.0406091534.566eb0ff@posting.google.com...
> "Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
news:<OLKwEYkTEHA.1508@TK2MSFTNGP11.phx.gbl>...
> > > like <br> in the input. However, while this information gets stored
> > > in the Access database correctly, when it gets pulled out the page
> > > displays the actual tag on the page. In other words, it actually
> > > converts the "<" to "<" in the html so that it displays as "<" on
> > > the web page.
> >
> > What is "it"? Can you show the code that causes this bizarre symptom?
> >
> > Anyway, if you store plain text carriage returns in the database, you
don't
> > need to teach all of your users HTML. Just replace them with HTML
carriage
> > returns when you DISPLAY the data. http://www.aspfaq.com/2188
>
> "it" is simply the text from the access database. All I am doing is
> trying to display a text field from the Access database onto a web
> page. So maybe it's an Access question. How do you get the Access
> database to store the carriage returns from the web form input page?
- Next message: Aaron [SQL Server MVP]: "Re: Using html tags pulled from an Access database in ASP page"
- Previous message: Alan Howard: "Re: CreateObject not working in Win2003"
- In reply to: BCS: "Re: Using html tags pulled from an Access database in ASP page"
- Next in thread: Aaron [SQL Server MVP]: "Re: Using html tags pulled from an Access database in ASP page"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|