Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
How do you automatically assign keywords / metatags to a page created on-the-fly. I have looked everywhere on google for the answer to this. I did find one article about using javascript to store the results of an sql query into a javascript variable and then assigning the value of the variable to the metatag keywords. The biggest problem with this method is that ALOT of search engine spiders dont like javascript. Is there any other way to do this? I guess I find it hard to believe so many thousands of companies use ASP or ASP.net while losing the ability to use keywords or metatags. Any help or opinions are greatly appreciated!

It's simple really. ASP is used to programatically create the page. You can just as easily create the headers programatically as you can the rest of the page.
Assuming your keywords are in a database, your script will first connect to the database and run a query to extract the keywords. THEN, you have it write the headers into the page. I think you are making this more difficult than it needs to be.
Michael J

I think I was making this ALOT harder than need be. I was under the assumption you could only insert auto-generated code in the body of an HTML document. I thought I had even tried this too. This makes complete sense now. It is no wonder why when googling I couldnt find any documentation on work arounds! Thanks so much for clarifing this novice level question. Just goes to show you what happens when you assume.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |