开发者

meta tags in .net framework 4.0 in pages base on master and content pages

where should i put meta tags in .net framework 4.0 in pages base on master and content pages?

mean in two below purposes :

1 - for each content page separately

2 - for all pages in master page

开发者_如何学编程

is there any property in master or content pages for setting meta tags and title ?(i could n't find them)


If there are meta tags that should be on ALL pages, you put it in the <head> section of your master page, just like you would a normal HTML page. There's no property for it because it's not a server-side property, you just put it in your page.

For individual meta tags that are different for each content page, add a new <ContentPlaceHolder> in the <head> of your master page. That will let you define the actual content on each page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜