Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > ASP

Reply
 
 
Gordon
Guest
Posts: n/a
 
      08-26-2004
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
 
Reply With Quote
 
 
 
 
Jeff Cochran
Guest
Posts: n/a
 
      08-26-2004
On Thu, 26 Aug 2004 06:41:14 -0700, "Gordon"
<(E-Mail Removed)> 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
 
Reply With Quote
 
 
 
 
Ray Costanzo [MVP]
Guest
Posts: n/a
 
      08-26-2004
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" <(E-Mail Removed)> wrote in message
news:09cb01c48b72$5b0d7e00$(E-Mail Removed)...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
global filter to redirect asp (old asp!) pages on asp.net site Daves ASP .Net 2 05-31-2006 08:33 AM
2.0: asp:Menu, asp:XmlDataSource, asp:PlaceHolder R.A.M. ASP .Net 1 03-29-2006 07:55 AM
[ASP.NET1.1]Should I kill the ASP.NET worker process after recompilingmy ASP.NET webservice? Andrea Raimondi ASP .Net 1 02-06-2006 08:10 AM
ASP.Net cookie -> ASP -> ASP.Net Ben ASP .Net 3 05-28-2004 03:35 PM
LOOP through an ASP form's pages (not ASP.NET - ASP classic) David A. Beck ASP General 10 04-13-2004 05:38 PM



Advertisments