![]() |
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 |
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 |
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.