Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 10th, 2005, 09:59 AM
Registered User
 
Join Date: Oct 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can I add code to title tags?

Can I do this in my title tags & not upset the search engines?
For example:

<title>
<%If InStr(1,Request.ServerVariables("PATH_INFO"),"junk food-",1) >= 1 Then%>
        <%If Country = 1 OR Country = 2 Then 'NorthAmerica, show states%>
        Icecream, Candy, Pop, Chips<%=GetState(State)%>
        <%Else%>
        Icecream, Candy, Pop, Chips<%=GetCountry(Country)%>
        <%End If%>
<%ElseIf InStr(1,Request.ServerVariables("PATH_INFO"),"Heal thyFoods",1) >= 1 Then%>
        <%If Country = 1 OR Country = 2 Then 'NorthAmerica, show states%>
        Fruit, Vegetables, Dairy & Meats<%=GetState(State)%>
        <%Else%>
        Fruit, Vegetables, Dairy & Meats<%=GetCountry(Country)%>
        <%End If%>
<%Else%>
Sugar Substitutes, Salad Dressings, Other Fats.
<%End If%>
</title>





Similar Threads
Thread Thread Starter Forum Replies Last Post
Websites content reading code like title of any we ali_ggl Javascript How-To 0 February 1st, 2008 08:58 AM
add HTML tags via XSLT chopswil2 XSLT 3 November 5th, 2007 09:30 AM
Changing Crystal Report Title from VB Code Niaz Pro VB Databases 4 June 9th, 2004 09:51 PM
Dynamically Add input tags Jstmehr4u3 Javascript How-To 2 July 29th, 2003 04:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.