Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   Can we use script in a table if GetString is used? (http://www.velocityreviews.com/forums/t793250-can-we-use-script-in-a-table-if-getstring-is-used.html)

Colin Steadman 02-10-2004 04:35 PM

Can we use script in a table if GetString is used?
 
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

Ray at 02-10-2004 04:43 PM

Re: Can we use script in a table if GetString is used?
 
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

"Colin Steadman" <google@colinsteadman.com> wrote in message
news:4062dca4.0402100835.558da8e@posting.google.co m...
> 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




Bob Barrows [MVP] 02-10-2004 07:55 PM

Re: Can we use script in a table if GetString is used?
 
Colin Steadman wrote:
> 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
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.



Colin Steadman 02-11-2004 04:50 PM

Re: Can we use script in a table if GetString is used?
 
> 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


All times are GMT. The time now is 04:56 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.