IIS ASP - ASP

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > August 2004 > ASP





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author ASP
Gordon

2004-08-27, 6:17 pm

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

2004-08-27, 6:17 pm

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]

2004-08-27, 6: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



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com