A
Asif
Hi All,
I did follow the MSDN article (http://msdn2.microsoft.com/en-us/
library/ms379585(VS.80).aspx
) for overriding Master Page properties by setting page title and
other Meta information( Keyword and Description) for individual
content page by writing the following line on Page_Load event in
content page
Sub Page_Load()
Master.Page.Header.Title = "Content Title"
Master.Page.Header.Metadata.Add("Keywords", "blah,blah")
Master.Page.Header.Metadata.Add("Description", "blah,blah")
End Sub
But it is giving me the following error:
System.Web.UI.HtmlControls.HtmlHead' does not contain a definition for
Metadata
Is there any idea why it is happening as it is clearly written in MSDN
article or any simple workaround for it?
Thanks
Asif
I did follow the MSDN article (http://msdn2.microsoft.com/en-us/
library/ms379585(VS.80).aspx
) for overriding Master Page properties by setting page title and
other Meta information( Keyword and Description) for individual
content page by writing the following line on Page_Load event in
content page
Sub Page_Load()
Master.Page.Header.Title = "Content Title"
Master.Page.Header.Metadata.Add("Keywords", "blah,blah")
Master.Page.Header.Metadata.Add("Description", "blah,blah")
End Sub
But it is giving me the following error:
System.Web.UI.HtmlControls.HtmlHead' does not contain a definition for
Metadata
Is there any idea why it is happening as it is clearly written in MSDN
article or any simple workaround for it?
Thanks
Asif