I had to change the title of the page, depending upon the "mode" querystring variable.

For this, I tried


Code:
<title runat="server" id="MyTitle">whatever</title>
And then tried to set the value in CodeBehind.

VB Code:
  1. Me.MyTitle....

But it wouldn't work.

I then did a little search and found out I had to add this:

VB Code:
  1. Protected MyTitle As System.Web.UI.HtmlControls.HtmlGenericControl

and then set it's InnerHTML property.

Why did I have to do this "HTMLGenericControl" thing?