Forums
This topic is locked
ASP code inserted in Database
Posted 26 Jun 2001 17:04:49
1
has voted
26 Jun 2001 17:04:49 james blair posted:
I need to insert some code in a database table in a asp format. This is to let the text that gets pulled out to be in a certain font, size and so on. I can do this on a asp page just before I pull out the textFor Example: <p><% =heading%> <%=(Recordset1.Fields.Item("Heading_main".Value)%></p>
heading is a variable (heading = "<b><font face='Arial, Helvetica, sans-serif' color='#666666' size='3'>" ) in a gobal.asa file
But if I try to put the <% =heading%> in the database field it does not seem to run it.
The reason is the field is a memo field with a lot of text and I want to put a gobal var on all headings, main text, sub headings and the like, but not on the whole text in the field.
I can do it with HTML tags (in the database) but this does not help with a change once,change the whole site rule
Hope this makes sense, Anybody Help
Jamesy
exmaple
Replies
Replied 26 Jun 2001 21:23:09
26 Jun 2001 21:23:09 Joel Martinez replied:
why not save all your troubles, and use CSS to change the site... you can keep all of the font and color information in one file, and just link all the pages to that file
hope it helps,
Joel Martinez
----------
Is this thing on?....
hope it helps,
Joel Martinez
----------
Is this thing on?....