MasterChief wrote on 02 nov 2005 in
microsoft.public.inetserver.asp.general:
I have the following statement in ASP. I was wondering how to get
qoutes around the variables like DocLink and DocName. Is it only
possible to get single tick marks instead of regular qoutes?
Response.Write("<a class=""MenuLinks"" href=" &
no () necessary in VBS, they just are an extra parsing cicle.
Rs.Fields("DocLink").value & "target=""_blank"">" &
"target ==> " target
Rs.Fields("DocName").value & "</a>")
1:
Response.Write "<a class=""MenuLinks"" href=""" &_
Rs.Fields("DocLink").value & """ target=""_blank"">" &_
Rs.Fields("DocName").value & "</a>"
2:
Response.Write "<a class='MenuLinks' href='" &_
Rs.Fields("DocLink").value & "' target='_blank'>" &_
Rs.Fields("DocName").value & "</a>"
3:
%>
<a class='MenuLinks'
href='<% =Rs.Fields("DocLink").value %>'
target='_blank'>
<% =Rs.Fields("DocLink").value %>
</a>
<%
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)