Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   ASP (http://www.velocityreviews.com/forums/t796087-asp.html)

Gordon 08-26-2004 01:41 PM

ASP
 
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

Jeff Cochran 08-26-2004 02:24 PM

Re: ASP
 
On Thu, 26 Aug 2004 06:41:14 -0700, "Gordon"
<anonymous@discussions.microsoft.com> 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

Ray Costanzo [MVP] 08-26-2004 02:43 PM

Re: ASP
 
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





All times are GMT. The time now is 09:49 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


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