Click here to Skip to main content
15,893,486 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
CSS
i know meta tag in design side but i want .....
for ex: http://localhost/website/index.aspx
this is olny one page i added meta tags but i want query string
ex:http://localhost/website/index.html?id=34
how to add meta tags with query string
plz help me
Posted
Comments
F-ES Sitecore 7-Apr-15 6:12am    
You'll need to explain a bit more. A meta tag is something like <meta name="title" content="Title goes here"> and I don't understand how that relates to your question.
Sinisa Hajnal 7-Apr-15 6:13am    
You realize there are "real" meta tags that go into the page header <meta something="anything" />?? You're talking about query string parameters...so lets try to find out what do you need...

If I understand correctly, you want to add id attribute to the link, right? Then you have to add it on control bind (or at page bind if you have the data at page loading). The link should be runat="server" (and you have to add the ID) if you want easy access.

There is an option to put the parameter(s) as javascript array from the server and then use javascript to set the values - but in this case I think adding runat="server" is easier.
iamvinod34 7-Apr-15 6:29am    
How do you add meta tags that change depending on the browser's query string parameter?

For example, on my blog site the blogs are read from a database and a sample blog would be http://www.example.com/blog/blog.aspx?ID=32

how write meta tags above link
plz help
Richard Deeming 7-Apr-15 7:46am    
iamvinod34 7-Apr-15 8:35am    
yes....

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