So I had a working Formview page, with Edit and Insert modes, each with identical controls (text, labels etc). I decided I wanted to use an Update Panel to update a Text Box with today's date based on the selection of a drop down.
Normally with a FormView I can normally have the same Text Box in both the Edit Template and the Insert Template, with the same ID name (txtDate) and everything with no problem....which is helpful/needed for databinding and code-behind methods.
But now when I place controls inside the 2 update panel in both Edit and Insert Templates, I get a "txtDate is already declared as txtDate" message for each control which is a contained in both (Insert Template, Edit Template) update panels.
Is this a bug? A couple people over at Experts Exchange seem to think so
Is there a viable workaround for this? I tried changing the name of one of the txtDate controls (and ALL refrences to it), but the databinding doesn't work when I do that (since after making the change I have two different controls bound to the same data element.)