08-27-04 11:17 PM
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" <anonymous@discussions.microsoft.com> wrote in message
news:09cb01c48b72$5b0d7e00$a301280a@phx.gbl...
> 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
[ Post a follow-up to this message ]
|