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

Discussion in 'ASP General' started by Colin Steadman, Feb 10, 2004.

  1. 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
     
    Colin Steadman, Feb 10, 2004
    #1
    1. Advertisements

  2. Colin Steadman

    Ray at Guest

    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" <> wrote in message
    news:...
    > 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, Feb 10, 2004
    #2
    1. Advertisements

  3. 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.
     
    Bob Barrows [MVP], Feb 10, 2004
    #3
  4. > 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
     
    Colin Steadman, Feb 11, 2004
    #4
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nakhi

    datareader.getstring(0) error

    Nakhi, Jul 14, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    2,328
    Nakhi
    Jul 15, 2003
  2. Nakhi
    Replies:
    0
    Views:
    578
    Nakhi
    Jul 15, 2003
  3. iMonkey

    encoder.GetString() help

    iMonkey, Jul 31, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    572
    iMonkey
    Jul 31, 2003
  4. DaveF

    GetString for .net

    DaveF, Jun 11, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,819
    John Saunders
    Jun 11, 2004
  5. DaveF

    GetString .net equivelant??

    DaveF, Jun 14, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    527
    DaveF
    Jun 14, 2004
  6. Casey Hawthorne
    Replies:
    1
    Views:
    927
    Arne Vajhøj
    Mar 18, 2009
  7. Ted Byers
    Replies:
    23
    Views:
    756
    Peter J. Holzer
    Nov 15, 2008
  8. Replies:
    0
    Views:
    131
Loading...