Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 10th, 2005, 10:59 AM
Registered User
 
Join Date: Oct 2005
Location: , , .
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>
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 10:51 PM
Dynamically Add input tags Jstmehr4u3 Javascript How-To 2 July 29th, 2003 05:03 AM



All times are GMT -4. The time now is 04:32 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.