Skip to main content
December 12, 2006
Question

response.write formating issues

  • December 12, 2006
  • 1 reply
  • 249 views
Hello I have built a CMS and it requires a response.write and it is not with in the body. The code is used for a nested loop. But having issues fomating it.

<a href="allContent.asp?page_id=<%=(rec_pages.Fields.Item("page_id").Value)%>" target="<%=(rec_pages.Fields.Item("page_target").Value)%>" class="third_tier_menu"> <%=(rec_pages.Fields.Item("page_title_menu").Value)%> &raquo;</a> <br />

I have done this but it seems to run the target and other itmes in the string. It also does not apply the style sheet:

Response.Write "<a href=""allContent.asp?page_id=" & get_3rd_tier_from_2nd_tier("page_id")_
& " target=" & "get_3rd_tier_from_2nd_tier("page_target")" & " class=""third_tier_menu"">" & get_3rd_tier_from_2nd_tier("page_title_menu") & "&raquo;" & "</a><br />"

Thanks for any help
This topic has been closed for replies.

1 reply

Inspiring
December 12, 2006
> & " target=" & "get_3rd_tier_from_2nd_tier("page_target")"

I think you have some extra quotes there. You are quoting your function
call, which is writing it out as-is rather than actually calling the
function.

-Darrel