Abhimanyu K Vatsa

Abhimanyu K Vatsa

  • NA
  • 40.4k
  • 21.4m

MetaKeywords, MetaDescription

Aug 18 2010 4:43 AM
hello.....

i am wishing to add MetaKeywords, MetaDescription for my website. my website has a master page named Site.master. Assume I have a Default.aspx, Default2.aspx pages and all are child of Site.master. Now If I am adding code given below in Default.aspx and Default2.aspx
**********************************************
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" MetaDescription="this is my meta description data" MetaKeywords="asp,php,my domain,coldfusion"%>
**********************************************
it works fine on localhost. but when I am publishing it on webserver it displayes following error:
***************************
Parser Error Message: Error parsing attribute 'metadescription': Type 'System.Web.UI.Page' does not have a public property named 'metadescription'.
***************************

Is I have to declare some lines in Site.master page or in every child pages to work on hosting server too?


Urgent Help Needed

Thanks in advance

Answers (2)