Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. [Error] Type mismatch: 'Response.Write'

[Error] Type mismatch: 'Response.Write'

Scheduled Pinned Locked Moved Web Development
databasesysadminarchitecturehelp
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gracenalec
    wrote on last edited by
    #1

    <% Dim RS Set Conn = Server.CreateObject("ADODB.Connection") Set RS = Server.CreateObject("ADODB.Recordset") Conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("forum.mdb") & ";" Conn.Open SQL = "SELECT * FROM profile" RS.Open SQL, Conn %> Youth Aloud!Forum #content { margin-right:1%; margin-left:1%; margin-top:5%; padding-bottom:10px; background:#fff; border:2px solid #ffaf38; text-align:left; min-width:600px; }

    Search the forum:

    Name: ">

    Age: ">

    Gender: ">

    Website: ">

    MSN: ">

    Yahoo: ">

    Occupation:

    I P 2 Replies Last reply
    0
    • G gracenalec

      <% Dim RS Set Conn = Server.CreateObject("ADODB.Connection") Set RS = Server.CreateObject("ADODB.Recordset") Conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("forum.mdb") & ";" Conn.Open SQL = "SELECT * FROM profile" RS.Open SQL, Conn %> Youth Aloud!Forum #content { margin-right:1%; margin-left:1%; margin-top:5%; padding-bottom:10px; background:#fff; border:2px solid #ffaf38; text-align:left; min-width:600px; }

      Search the forum:

      Name: ">

      Age: ">

      Gender: ">

      Website: ">

      MSN: ">

      Yahoo: ">

      Occupation:

      I Offline
      I Offline
      IronBrad
      wrote on last edited by
      #2

      Are you checking to make sure your record set has values? Are you displaying a single record because I do not see a loop.

      G 1 Reply Last reply
      0
      • I IronBrad

        Are you checking to make sure your record set has values? Are you displaying a single record because I do not see a loop.

        G Offline
        G Offline
        gracenalec
        wrote on last edited by
        #3

        i'm onie trying to display a single value..act i'm not sure on how to set the value of RS....i'm soooo new to this :(

        1 Reply Last reply
        0
        • G gracenalec

          <% Dim RS Set Conn = Server.CreateObject("ADODB.Connection") Set RS = Server.CreateObject("ADODB.Recordset") Conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("forum.mdb") & ";" Conn.Open SQL = "SELECT * FROM profile" RS.Open SQL, Conn %> Youth Aloud!Forum #content { margin-right:1%; margin-left:1%; margin-top:5%; padding-bottom:10px; background:#fff; border:2px solid #ffaf38; text-align:left; min-width:600px; }

          Search the forum:

          Name: ">

          Age: ">

          Gender: ">

          Website: ">

          MSN: ">

          Yahoo: ">

          Occupation:

          P Offline
          P Offline
          prodigymunky
          wrote on last edited by
          #4

          I believe you can do without the response.write( ) in that line ... so just use <% RS("Name") %> ~ Munky

          G 1 Reply Last reply
          0
          • P prodigymunky

            I believe you can do without the response.write( ) in that line ... so just use <% RS("Name") %> ~ Munky

            G Offline
            G Offline
            Guffa
            wrote on last edited by
            #5

            I believe that you are thinking of the short form of Response.Write: <%=RS("Name")%> which is exactly the same as: <%Response.Write(RS("Name"))%> --- b { font-weight: normal; }

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups