Hi -
I have a web part that I've inherited that gets and displays content from a web service. As part of this, the page title is updated with a simple bit of text replacement. . .
// Replace the token "{report-title}" that is in the "Page title" field from Metadata
this.Page.Title = this.Page.Title.Replace("{report-title}", "New title from web service");
This part works great.
I would like to do the same thing with the meta description, but this does not appear to work in the same manner. For simplicity's sake, this is what I have tried . . .
this.Page.MetaDescription = "New Description";
The MetaDescription property is something that IntelliSense pops out in VS, so it seemed a likely solution. However, the meta description in the <head> section of the resulting page remains unchanged.
What's the best way to go about this?
Thanks for any help.