Thank Kent! This worked like a charm.

"Kent" <file_delete@hotmail.com> wrote:
>This:
><input type='text' name='txtLastName' value="<%=lkupRS("LastName")%>">
>
>Can be reproduced by this:
>
><%
>Response.Write "<input type='text' name='txtLastName' value="""
>Response.Write lkupRS("LastName")
>Response.Write """>"
>%>
>
>Note that 2 double quotes 'escape' the double quotes and allow a double

quote to be
>used
>within double quote string delimiters. This works in HTML, JScript & VBScript.
>
>Similarly, 2 single quotes will 'escape' the single quote. This works in

HTML & JScript.
>
>Kent
>
><webdev.@127.0.0.1> wrote in message news:3d4583ec@10.1.10.29...
>>
>> This would work if I were not generating the text box with a Response.write
>>
>>
>> However, I need to use a Response.write to generate the text box as well
>> as the information that it contains. So, this won't work for the situation
>> that I am constrained by.
>>
>> "ramana" <ruthala_2000@yahoo.com> wrote:
>> >
>> >Just Try This...This works well
>> >
>> ><input type='text' name='txtLastName' value="<%=lkupRS("LastName")%>">
>> >
>> >
>> >
>> >
>> >
>> >
>> >"Steve" <sa1lopez@hotmail.com> wrote:
>> >>
>> >>I was wondering if you can help me out with a ASP question that I have?
>> >>
>> >>1. DB contains a LastName field
>> >>2. The LastName field has "O'Brien" stored in it
>> >>3. Need to bring this into a text box for editing
>> >>
>> >>The following is the script that I am using (and isn't working):
>> >>Response.write "<input type='text' name='txtLastName' value='" &

>Server.HTMLEncode(lkupRS("LastName"))
>> >>& "'>"
>> >>
>> >>It will display "O" in the text box due to the ' in the name.
>> >>
>> >>Thanks for any help that you can give me.
>> >>Steve
>> >

>>

>
>