Welcome to WebmasterWorld Guest from 34.204.173.36

Forum Moderators: ocean10000

Message Too Old, No Replies

Scripted links & SE spiders

SE friendly scripts in ASP: possible?

     
7:47 pm on Sep 1, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 8, 2004
posts: 63
votes: 0


At the top of my ASP.net 2.0 website I want to have a bit of teaser text. Every time the page refreshes, I want to randomly select the specific teaser text from a group of 30 pre-made teasers.

Problem:
1. They tell me that SE spiders start at the top of the page and thus will give weight to the teaser text.
2. I have read that the SE spiders don't like the script that typically is used to enable the teasers to display at random.

Question:
Is there a way in ASP.net 2.0 to select a teaser at random and still make the SE spiders happy?

Cheers,

Poet

2:03 am on Sept 2, 2008 (gmt 0)

Administrator

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month

joined:Jan 14, 2004
posts:864
votes: 3


Easiest way would be to only show the teaser text to the major browsers IE, FireFox, Opera, Safari. This would exclude most bots and crawlers thus avoiding the problem with the search engines.
5:50 am on Sept 2, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 8, 2004
posts:63
votes: 0


Thanks, Ocean. Let me rephrase my question. The problem is that SE spiders have a hard time following the link in the teaser to the content in the db . . . because of the script.

So, the question is, how to provide this "pick a teaser + content" at random with each page refresh . . . and still enable the SEs to follow the link from the teaser to the content that it links to?

Poet

1:51 pm on Sept 4, 2008 (gmt 0)

Administrator

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month

joined:Jan 14, 2004
posts:864
votes: 3


Simpliest way I can think of is to create a usercontrol which will output the random teaser text as pure text, and skip the javascript so its no longer an issue.

As for keeping the teasers random you could use the random class.

Random rand = new Random()
int RandomTeaserID = rand.Next( 0, 29 );

And use the RandomTeaserID to lookup a Teaser text in an array.