ASP - I want a piece of text to display only on the homepage, so I use the if...

pineapple

New member
...statement but...? <%If Request.ServerVariables("URL") ="/index.aspx" Then%>
text text text
<%
end if
%>

Which displays the piece of text, but also displays it on every page that contains an instance of "index.aspx" in its URL

Is there a way I can make it display only on index.aspx page only?

Hope someone can help, thanks! Julie
 
Back
Top