Do you mean the <TITLE> for your HTML Page?
<%
yourAspTitleGoesHere = "Dynamically Created Title"
%>
<TITLE><%=yourAspTitleGoesHere%></TITLE> ----------------------------------------------------------------- Be nice. It's only doing what you tell it to do.
mikewolf@tst-us.com
Well i ve figured out that there is no way to read document's title from ASP beacuse it's still running on server and not on browser yet.
The only way is to open current document as text and get from it whats inside <title> and </title> tags. Well this is the solution to this problem :
---- ASP Page
lTitle = GetTitle(Request.ServerVariables("SCRIPT_NAME")
----- ASP Functions
Public Function GetTitle(FileToRead)
whichfile=server.mappath(FileToRead)
Set fs = CreateObject("Scripting.FileSystemObject"
Set thisfile = fs.OpenTextFile(whichfile, 1, False)
tempSTR=thisfile.readall
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.