Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > ASP Page Layout in Table Issue

Reply
Thread Tools

ASP Page Layout in Table Issue

 
 
msnnews,microsoft.com
Guest
Posts: n/a
 
      10-02-2009
Hi all,

I have stored the contents of the page between <body> and </body> in a table
field for CMS reasons. Unfortunately in the stored code is some dynamic
recordset contents and this will not display due to <%= %> tags, I have
tried the replace function and although that partly works is there another
option?

Thanks in advance, see code below.

CURRENTLY USING

<%
Dim BodyTemplate
BodyTemplate = rsViewAboutUs.Fields.Item("BodyTemplate").Value
BodyTemplate = Replace(BodyTemplate,
"{(rsViewAboutUs.Fields.Item(""HeadImageURL"").Val ue)}",
rsViewAboutUs.Fields.Item("HeadImageURL").Value)
BodyTemplate = Replace(BodyTemplate,
"{(rsViewAboutUs.Fields.Item(""HeadImageAlt"").Val ue)}",
rsViewAboutUs.Fields.Item("HeadImageAlt").Value)
Response.Write(BodyTemplate)
%>

PROBLEM CODE WHERE ABOCE DOESNT WORK

<td align="center"><a href="<%= WebRoot %>/index.asp"
class="TopLinks">Home</a></td>
<td align="center" ><img src="<%= WebRoot
%>/html/images/top_links_sp.gif" width="3" height="31" /></td>
<% If Abs(rsViewWebPages.Fields.Item("Fleet").Value) =1 Then %>
<td align="center"><a href="<%= WebRoot %>/html/fleet.asp"
class="TopLinks">Fleet</a></td>
<td align="center"><img src="<%= WebRoot
%>/html/images/top_links_sp.gif" width="3" height="31" /></td>
<% End If %>

Its the IF statements I cannot get to work.

Regards
Simon Gare
www.london.chauffeurcarcompany.com


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Layout suggestions - table layout sso Java 6 04-30-2009 05:17 AM
Css-Layout vs Table-Layout Habib HTML 15 06-20-2006 05:11 AM
Choosing Layout: Css-Layout or Table-Layout hpourfard@gmail.com ASP .Net 1 06-19-2006 10:06 AM
Table-based layout to CSS layout Guybrush Threepwood HTML 20 06-11-2006 11:12 AM
CSS Layout question - how to duplicate a table layout with CSS Eric ASP .Net 4 12-24-2004 04:54 PM



Advertisments