Posted on: 7/11/2013 8:05:26 PM | Views : 241

I am getting this error... Error Creating Control - EmailAddressTextBox
Duplicate component name 'EmailAddressTextBox' Component names must be unique and case sensitive
One EmailAddressTextBox is in the EditItemTemplate and one is in the InsertItemTemplate of a FormView
When I first open the formview all is well. Make a change to the either one like MaxLength = "100" the error pops up. Copy the new one to the other template the error goes away.
Thats legal so why the error?
 This is in Visual Studio 2012
 Also if I change the name of the control and change it back it works.
Also...
My code looks like this
<asp:TextBox ID="EmailAddressTextBox" runat="server" Text='<%# Bind("EmailAddress") %>' Columns="40" /> When I change it to this it works
<asp:TextBox ...

Go to the complete details ...