![]() |
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 |
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 |
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. |
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:57 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.