Hi,
I am having trouble with the use of syntax in my ASP code. It is truncating the Title at the first blank space.
The code when it is not involved in a response.write is as follows:
<a href="javascript:ViewDetails('Project_details.asp?Title=<% = rs("Title") %>');" class="FormField">View</a>
when I put it in a response.write I am obviously putting the single or double quotes in the wrong place:
While Not rs.EOF
Title=rs("Title")
response.Write "<span class=fieldlabel><a href=javascript:ViewDetails('Project_details.asp?Title='" & title & "')" & "class=FormField>" & Title & "</a></span><br>"
counter = counter +1
rs.MoveNext
Response.Flush()
WEND
Combining the HTML and ASP syntax has always confused me. The logic I have no problem with but I seem to have a mental block when it comes to the syntax! I would appreciate any help you could lend me.
Thanks,
Kris912
I am having trouble with the use of syntax in my ASP code. It is truncating the Title at the first blank space.
The code when it is not involved in a response.write is as follows:
<a href="javascript:ViewDetails('Project_details.asp?Title=<% = rs("Title") %>');" class="FormField">View</a>
when I put it in a response.write I am obviously putting the single or double quotes in the wrong place:
While Not rs.EOF
Title=rs("Title")
response.Write "<span class=fieldlabel><a href=javascript:ViewDetails('Project_details.asp?Title='" & title & "')" & "class=FormField>" & Title & "</a></span><br>"
counter = counter +1
rs.MoveNext
Response.Flush()
WEND
Combining the HTML and ASP syntax has always confused me. The logic I have no problem with but I seem to have a mental block when it comes to the syntax! I would appreciate any help you could lend me.
Thanks,
Kris912