in my overridden OnPreRender function, I can modify the text of a label: Label1.Text='in OnPreRender'
However, I cannot do this.Header.Title='changed in OnPreRender'
The only way to change the browser title is by doing:
this.Controls.Remove(this.Controls[0]);
this.Controls.AddAt(0, new LiteralControl("<html><head><title>changed in OnPreRender</title></head></html>")
Why can't I change the Title just like the Label? Nothing has rendered yet...