Go Back   Computer Forums > General Computing > Programming
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 12-01-2003, 09:25 AM   #1
Beta Member
Join Date: Dec 2003
Posts: 1
Exclamation make .css work in asp

I have this asp page:


<!--#include file="../Connections/config.asp" -->
<!--#include file="buildpage.asp"-->
Dim Recordset1__MMColParam
Recordset1__MMColParam = "1"
if (Request.QueryString("N_ID") <> "") then Recordset1__MMColParam = Request.QueryString("N_ID")
set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_conngcocmembers_STRING
Recordset1.Source = "SELECT * FROM New WHERE N_ID = " + Replace(Recordset1__MMColParam, "'", "''") + ""
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1_numRows = 0

Call ReadFromTemplate(strTemplateLocation,aryPageTempla te,strDatestampHTML)

<body style="background-color:transparent" bottommargin="0" leftmargin="0" rightmargin="0">
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<% If Not Recordset1.EOF Or Not Recordset1.BOF Then %>
<table width="100%" border="0" cellpadding="2">
<%=(Recordset1.Fields.Item("N_paragraph").Value) %> </td>
<td><img src="../images/spacer.gif" alt="" width="10" height="10"></td>

<% End If ' end Not Recordset1.EOF Or NOT Recordset1.BOF %>

And I want this line "<%=(Recordset1.Fields.Item("N_paragraph").Value)% >" that is a text field to work with a css style file.
I've tryed to add a <class> tag to <td> or whatever but it does not seem to work.
I just want the text that this line "<%=(Recordset1.Fields.Item("N_paragraph").Value)% > " makes to change to what I put in the .css file.

Please advice,



tweaker is offline   Reply With Quote
Old 12-01-2003, 10:26 AM   #2
Site Team
David Lindon's Avatar
Join Date: Dec 2002
Posts: 15,233
Default Re: make .css work in asp

Can't you just print the HTML with response.write?
[url=http://www.LNXPS.NET]LNXPS.NET - The XPS Library]
David Lindon is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

All times are GMT -5. The time now is 12:31 PM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0