ASP
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS ASP > ASP




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    ASP  
Gordon


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-27-04 11: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





[ Post a follow-up to this message ]



    Re: ASP  
Jeff Cochran


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-27-04 11: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





[ Post a follow-up to this message ]



    Re: ASP  
Ray Costanzo [MVP]


Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:35 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register