Response.write tables

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Re: Response.write tables

    There are no "table commands".
    If you're going to be doing any ASP at all, the first thing you should do is
    find out about HTML.

    <table>
    <%
    do while not rscalls.eof
    response.write "<tr>"
    response.write "<td>" & rscalls("fld1") & "</td>"
    response.write "<td>" & rscalls("fld2") & "</td>"
    response.write "</tr>"
    rscalls.movenext
    loop
    %>
    </table>

    tim

    "Tim Midgett" <tmidgett@unitedfidelity.com> wrote in message
    news:797741630997176@Asp.ForumsZone.com...
    > When I add a record to my access database I have it display the access
    table when it is added. It list all the info on the screen. I would like to
    have the output in a table but I am not sure how to add the table commands
    to my response.write on my asp output page. The following is the page that I
    am using now.
    > <html>
    > <head>
    > <title>Customer Calls</title>
    > </head>
    > <body bgcolor="white" text="black">
    > <%
    > Dim adoCon
    > Dim rsaddccalls
    > Dim strSQL
    >
    > Set adoCon = Server.CreateObject("ADODB.Connection")
    > adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="&
    Server.MapPath("ccalls.mdb")
    >
    > Set rsccalls = Server.CreateObject("ADODB.Recordset")
    >
    > strSQL = "SELECT calltable.date, calltable.time, calltable.operator,
    calltable.fname, calltable.initial, calltable.lname, calltable.account,
    calltable.ssn, calltable.direct, calltable.deposit, calltable.phone,
    calltable.address, calltable.reason FROM calltable;"
    >
    > rsccalls.Open strSQL, adoCon
    >
    > Do While not rsccalls.EOF
    >
    > Response.Write ("<br>")
    > Response.Write (rsccalls("date"))
    > Response.Write ("<br>")
    > Response.Write (rsccalls("time"))
    > Response.Write ("<br>")
    > Response.Write (rsccalls("operator"))
    > Response.Write ("<br>")
    > Response.Write (rsccalls("fname"))
    > Response.Write ("<br>")
    > Response.Write (rsccalls("initial"))
    > Response.Write ("<br>")
    > Response.Write (rsccalls("lname"))
    > Response.Write ("<br>")
    > Response.Write (rsccalls("account"))
    > Response.Write ("<br>")
    > Response.Write (rsccalls("ssn"))
    > Response.Write ("<br>")
    > Response.Write (rsccalls("direct"))
    > Response.Write ("<br>")
    > Response.Write (rsccalls("deposit"))
    > Response.Write ("<br>")
    > Response.Write (rsccalls("phone"))
    > Response.Write ("<br>")
    > Response.Write (rsccalls("address"))
    > Response.Write ("<br>")
    > Response.Write (rsccalls("reason"))
    > Response.Write ("<br>")
    > rsccalls.MoveNext
    >
    > Loop
    >
    > rsccalls.Close
    > Set rsccalls = Nothing
    > Set adoCon = Nothing
    > %>
    > </body>
    > </html>
    >
    > Thanks Tim
    >
    > -----------------------------
    > This message is posted by [url]http://Asp.ForumsZone.com[/url]
    >

    Tim Williams Guest

  2. Similar Questions and Discussions

    1. response.write URL
      I have a page which lists conferences and events which the company for which I coded the site attends or hosts themselves. They want to be able to...
    2. Response.Write doesn't work
      And why doesn't my swedish characters (هنِ) show up in the email correctly? <% Namn = Request.form("namn") Adress = Request.form("adress")...
    3. If response.write help
      Hi, I am trying to code my asp page so that if you are on page Y, the link to page Y in the nav, is in the over state to help users identify where...
    4. Response.Write not working
      Hello, in my ASP.NET c# project I can ouput text using response.write from the code behind class. It works in the aspx file using <asp:TextBox>...
    5. Response.Write and Response.Redirect
      On my Page_Load event, i need to do some validation and then either let them proceed, or display a error message and boot them back to the previous...
  3. #2

    Default Re: Response.write tables



    Thanks Guys help alot.
    Thanks Tim

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Tim Midgett Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139