If I use master pages with META tags in the head section... can I still use
META tag on the child pages (child pages reference the master page). I ask
this question because I heard the more pages with META tags containing
search engine key words, the higher the search engine ranking.
Thanks,
King
One idea is to derive all your pages from clsStandardPage and not from Page
class.
then your clsStandardPage can expose to abstract properies MetaKeywords and
MetaDescription. It will force every aspx page to define those properties.
Then in your master page you need reference them in correct place
Something like this
<META Descirption="<%=((clsStandardPage)this.Page).MetaDescription%">
PS: your clsStandardPage must be derived from Page class since all .aspx
pages must eventually be derived from Page.
George.
"King Coffee" <kco...@hotmail.com> wrote in message
news:6BA26E93-A80D-486A...@microsoft.com...
-- bruce (sqlwork.com)
> If I use master pages with META tags in the head section... can I still
When you put meta tags in your MasterPage, all your content pages which use
that MasterPage will acquire those meta tags as part of the HTML rendering
process.
You can add additional meta tags as required:
http://www.howtoadvice.com/SetMetaTags
However, as Bruce has mentioned, this is almost not worth the bother, as
hardly any search engines use meta tags these days...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
"King Coffee" <kco...@hotmail.com> wrote in message
news:6BA26E93-A80D-486A...@microsoft.com...