Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Experts

I am having CMS system which we created in core asp;.net c# , now client want to add meta tag on the each page which is created by backend system or manually

client want to meta information( meta title. keyword desc ) to be saved on datbase and fetch respective pages

different page has different id and content is also coming database ..

Can this possible ??
Posted
Comments
ZurdoDev 3-Jul-13 12:44pm    
I'm confused. You have a CMS system and now you want to know if you can add meta tags? Can you? Do you control the CMS? Do you control where the html is?
vivek_2984 3-Jul-13 15:31pm    
We have designed a complete cms with all functionality like adding page , deleting etc ..
now i would like to manage meta tag in a same manner as if i m managing pages and another stuff.. ,

1 solution

For the keywords you can try the following:
C#
System.Web.UI.HtmlControls.HtmlMeta pageKeyWords = new HtmlMeta();
pageKeyWords.Name = "keywords";
pageKeyWords.Content = "Keyword list from databasefield or function";
Page.Header.Controls.Add(pageKeyWords);


and then just set the Content property to whatever value you want it to be. For the title you can use
C#
Page.Header.Title


Hope this helps.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900