Print Page | Close Window

response.write & title.

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=11528
Printed Date: 31 March 2026 at 6:31am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: response.write & title.
Posted By: Badaboem
Subject: response.write & title.
Date Posted: 13 August 2004 at 12:19pm

& "<a href=""" & strForumPath & "forum_posts.asp?TID=" & adoRec("Topic_ID") & """ class=""smLink""  title=" & strTopicSubject & ">" _


Title in the above response.write seems to work only half. The first word is displayed, but the rest is simply cut off. So from the thread topic tiles ''today r9 was published'' only today is displayed when hovering over the link.

<%response.write strTopicSubject%> does display the whole topic, so the string is correct.

Why does this happen?



Replies:
Posted By: dj air
Date Posted: 14 August 2004 at 8:32am
it needs to be in quotes else it will stop at the first space

so should be
 title = "" & strTopicSubject & ""





Posted By: Badaboem
Date Posted: 15 August 2004 at 9:26am
Thanks for replying.

Putting extra quites in there, result in the title being displayed as "&strTopicSubject&". I've tried that in the beginning, but the string is simply seen as text if you do that.

Any other suggestions?
Thanks.


Posted By: dj air
Date Posted: 15 August 2004 at 12:43pm

oopps .. sorry its ment to be double quotes because its response.writing the whole thing.

title = """ & strTopicSubject & """



Posted By: Badaboem
Date Posted: 15 August 2004 at 6:41pm
Thanks!
Working a.o.k.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net