Wait, wait, wait. It's early for me. Of course, the Inherits is there
because that is how the code behind class name is communicated to the page.
So the Inherits must be there. frmRfq is the name of the form which then
becomes the name of the code behind class. If I change the form name to Rfq
and do a build then the Inherits line changes to Rfq and the code behind
class name changes to Rfq. I thought this was how things were supposed to
But. If I keep the form name as frmRfq and then change the Inherits value to
be PrancinWeb.am.Rfq, the class name to be that, and the following
auto-generated line in the InitializeComponent method:
this.ID = "Rfq";
Everything builds (the class and/or form name does not magically change) and
I seem to be able to run the page without the multiple controls error.
So I guess the question becomes: Why is the IDE changing the class name when
I change the form name?
> Thanks, Michael - it was the Inherits. So much for auto-generated code!
> The strange thing is that with the Inherits the page would mostly work -
> just once in a while the multiple controls error would occur. Oh well.
> > I also notice that you are inheriting a class that has the name frmRfq:
> > Inherits="PrancinWeb.am.frmRfq. It's possible
> > that this is where the duplication is occurring. Do you have the same
> > problem if you change the form id to "frmRfq1"?
> > Try doing a find/replace, and making sure that you change the Inherits
> > back to normal. Let us know! Good luck!
> > This posting is provided "AS IS" with no warranties, and confers no