Duplicate declaration of Usercontrol in FormView

1

I have a user control that I include in an EditItemTemplate template of the formview, but when I add a second ItemTemplate template and place a copy of the user control it gives me an error that a declaration of that user control already exists.

This is the control statement in each template '/ >

This is the error "BC30260: 'cbpais' is already declared as 'Protected WithEvents cbpais As controls_ucdropdownedit_ucdropdownedit_ascx' in class."

    
asked by Raúl 05.07.2016 в 08:46
source

1 answer

0

Requested: I assign the ItemTemplate template to the others in the Init, so I have a single FormView template for everything and I avoid duplicating the controls.

    
answered by 05.07.2016 в 09:56