public DotNetNuke.Framework.CDefault BasePage
{
get { return (DotNetNuke.Framework.CDefault)(Page);
}
}
protected override void OnInit(EventArgs e)
{ base.OnInit(e); BasePage.Author = "John Doe"; BasePage.Comment = "Some Comment"; BasePage.Copyright = "Some Organization"; BasePage.Description = "Some Description"; BasePage.Generator = "Some Generator";
BasePage.KeyWords = "Keyword A, Keyword B" BasePage.Title = "Some Title";
}
where do you put this code?
ReplyDeleteHere i am assigning value to "BasePage" property of page in OnInit event.
ReplyDeleteYou can assign this property value anywhere in your code.