@Nicodemas
line continuations, fine, I don't have a problem with that. I have just seen too many people trying to response.write complex HTML including escaped quote marks. They always lose count of their quotes and can't decipher the error messages.
- response.write "<input type=""text"" value="" & rs("myTextValue") & "" name=""myTextValue"">" & vbNewLine
Do you see where the error is? the error would be something like "Command expected".
Or they use non-strict or even non-standard HTML because they are trying to avoid using quotes. The only other solution I've liked, is to assign double quotes to a variable
- dim q
-
q = chr(34)
-
response.write "<input type=" & q & "text" & q & " value=" & q & _
-
rs("myTextValue") & q & " name=" & q & "myTextValue" & q & ">" &_
-
vbNewLine
but this is much less-clean than this
-
%>
-
<input type="text" name="myTextValue" value="<%=rs("myTextValue")%>">
-
<%
I don't know which executes faster, but I know this last is easier to read, write and troubleshoot.
Jared