Buggin' on the LoginView control
I guess I'm just lucky, but I was surprised to find some bugs with the ASP.NET LoginView control and its use in VS 2005. I know it's only beta 1, but it surprised me.
First off, I can't access controls in the LoginView. So if you have:
<asp:LoginView Runat="Server" ID="TopNav">
<AnonymousTemplate>
<asp:TextBox ID="EmailTextBox" Runat="server" />
</AnonymousTemplate>
</asp:LoginView>
Then when you try to access EmailTextBox, like EmailTextBox.Text = "blah" for example, it throws an exception:
CS0103: The name 'EmailTextBox' does not exist in the current context
The thing is, it's clearly in the control tree, and if you move it outside of the LoginView, it can be accessed just fine.
Related, at some point when switching between design view and source for a page, the <LoggedInTemplate> of my LoginView migrated outside of the LoginView tags, and entirely outside of the <form> tags. It happened at some point while I was editing the <AnonymousTemplate> in design view, adding controls and an HTML table.
I guess I finally earned all of my mailings!