I have several content pages hanging off of one master page. I need to add a refresh meta tag to one of the content pages but I can't see where I can do this.
Any help would be much appreciated.
I have several content pages hanging off of one master page. I need to add a refresh meta tag to one of the content pages but I can't see where I can do this.
Any help would be much appreciated.
Have not tried this with refresh, but in general you can add a meta tag like this:
update: it is possible this way. Check Rick Strahl http://www.west-wind.com/weblog/posts/2006/Aug/04/No-more-Meta-Refresh-Tags
One way I found to do this (that I didn't see listed here) was to have a Literal and fill it with whatever kinds of meta tags you want. In my case, I needed to use it without a Master page, to have Facebook recognize a thumbnail image, title, and description:
CodeBehind:
(source url)
You can add a content place holder on the master page in the head section of the html. You can then add stuff to this content section in your specific content page and it will be outputted to the page header.
This page explains the new feature: ASP.Net 4 adds 2 new Meta tag related properties to the Page. They can be used to set meta tags for keywords and description.
You can set them in the code behind:
You can also set in the @Page directive:
The ouput of either of these methods renders html similar to the following:
add below code in designer page
Now add below code to your .cs page