I had to change the title of the page, depending upon the "mode" querystring variable.
For this, I tried
And then tried to set the value in CodeBehind.Code:<title runat="server" id="MyTitle">whatever</title>
But it wouldn't work.
I then did a little search and found out I had to add this:
- Protected MyTitle As System.Web.UI.HtmlControls.HtmlGenericControl
and then set it's InnerHTML property.
Why did I have to do this "HTMLGenericControl" thing?