ASP

Discussion in 'ASP General' started by Gordon, Aug 26, 2004.

  1. Gordon

    Gordon Guest

    I'm new to ASP, and this is probably a real dumb question,
    but: I'm trying to use ASP to display the contents of a
    recordset that I've queried. I use the following code:

    Response.Write "<TD align=left><INPUT TYPE=TEXT NAME=D1
    VALUE=" & objRS.Fields("D1_Requestor") & "></TD>"

    My question is: how do I tell ASP to write the needed
    double quotation marks which should go around the textbox
    NAME (D1)?

    Thanks in advance,
    Gordon
    Gordon, Aug 26, 2004
    #1
    1. Advertising

  2. Gordon

    Jeff Cochran Guest

    On Thu, 26 Aug 2004 06:41:14 -0700, "Gordon"
    <> wrote:

    >I'm new to ASP, and this is probably a real dumb question,
    >but: I'm trying to use ASP to display the contents of a
    >recordset that I've queried. I use the following code:
    >
    >Response.Write "<TD align=left><INPUT TYPE=TEXT NAME=D1
    >VALUE=" & objRS.Fields("D1_Requestor") & "></TD>"
    >
    >My question is: how do I tell ASP to write the needed
    >double quotation marks which should go around the textbox
    >NAME (D1)?


    Use single quotes or just use double quotes twice. As in:

    Name='D1'
    Name =""D1""

    Jeff
    Jeff Cochran, Aug 26, 2004
    #2
    1. Advertising

  3. To write a " character in VB Script, the way to "escape" it is by putting
    two " characters where you want one. IE.



    Response.Write "<TD align=left><INPUT TYPE=TEXT NAME=D1 VALUE=""" &
    objRS.Fields("D1_Requestor") & """></TD>"

    Ray at work



    "Gordon" <> wrote in message
    news:09cb01c48b72$5b0d7e00$...
    > I'm new to ASP, and this is probably a real dumb question,
    > but: I'm trying to use ASP to display the contents of a
    > recordset that I've queried. I use the following code:
    >
    > Response.Write "<TD align=left><INPUT TYPE=TEXT NAME=D1
    > VALUE=" & objRS.Fields("D1_Requestor") & "></TD>"
    >
    > My question is: how do I tell ASP to write the needed
    > double quotation marks which should go around the textbox
    > NAME (D1)?
    >
    > Thanks in advance,
    > Gordon
    Ray Costanzo [MVP], Aug 26, 2004
    #3
    1. Advertising

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. Ben
    Replies:
    3
    Views:
    1,124
  2. Andrea Raimondi
    Replies:
    1
    Views:
    448
  3. R.A.M.
    Replies:
    1
    Views:
    3,229
    =?Utf-8?B?Y2xpY2tvbg==?=
    Mar 29, 2006
  4. Daves
    Replies:
    2
    Views:
    730
    Patrice
    May 31, 2006
  5. David A. Beck
    Replies:
    10
    Views:
    1,006
    Scott McNair
    Apr 13, 2004
Loading...

Share This Page