Can we use script in a table if GetString is used?

C

Colin Steadman

Just been looking at this article:

http://www.4guysfromrolla.com/webtech/121598-1.shtml

which describes using GetString to speed up the creation of HTML
tables. Seems fairly straight forward. But judging by the example it
would appear that if I use this technique, I could not then use ASP
script within the table itself, for example:

....
<td>
<%
If Trim(rs(13)) > "" Then response.write "<img src='images/tick.gif'>"
%>
</td>
....

Is this correct?

TIA,

Colin
 
R

Ray at

What?

Like, rs.GetString(2, ,"<%=varName%>", "<%=something%>")

or something?

What?

You could always use getRows.

Or you could modify your query to return your image path.

Ray at work
 
B

Bob Barrows [MVP]

Colin said:
Just been looking at this article:

http://www.4guysfromrolla.com/webtech/121598-1.shtml

which describes using GetString to speed up the creation of HTML
tables. Seems fairly straight forward. But judging by the example it
would appear that if I use this technique, I could not then use ASP
script within the table itself, for example:

...
<td>
<%
If Trim(rs(13)) > "" Then response.write "<img src='images/tick.gif'>"
%>
</td>
...

Is this correct?

Yes.
What you can do is use your query to put those tags into your data. The
specifics depend on what you are trying to do and what your backend database
is.

Bob Barrows
 
C

Colin Steadman

Yes.
What you can do is use your query to put those tags into your data. The
specifics depend on what you are trying to do and what your backend database
is.

Bob Barrows


Thankyou.

Colin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top