Computing.Net > Forums > Web Development > Asp.net auto-generate metatags

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Asp.net auto-generate metatags

Reply to Message Icon

Name: suspect52732
Date: May 17, 2006 at 11:40:17 Pacific
OS: XP
CPU/Ram: 2.4/512
Comment:

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!



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: May 17, 2006 at 12:02:01 Pacific
Reply:

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


0

Response Number 2
Name: suspect52732
Date: May 19, 2006 at 09:27:58 Pacific
Reply:

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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Asp.net auto-generate metatags

checkbox within datagrid (ASP.NET) www.computing.net/answers/webdevel/checkbox-within-datagrid-aspnet/828.html

asp.net web service and mysql www.computing.net/answers/webdevel/aspnet-web-service-and-mysql-/2695.html

ASP.NET Binder Problem www.computing.net/answers/webdevel/aspnet-binder-problem/266.html