On Thu, 03 Mar 2005 08:19:51 -0600, <jh*****@yahoo.com> wrote:
This morning I opened a project in VS that I hadn't touched for months.
There's many tabs at the top representing open files.
Among them are two that look very similar:
myCtrl.ascx.vb:1
myCtrl.ascx.vb:2
I'd neven seen this situation before. There's only one myCtrl.ascx.vb
file.
I also believe this means the same file is just opened twice. This can
happen by design, I can't remember if it's when you double-click on a file
to open it again, VS.NET asks if you want to close the existing copy, you
can say no and end up with 2....
When I try to load the ascx into the designer I get an error saying it
cannot be loaded because none of the classes can be designed.
Any explanations for this?
TIA,
Jim
This is usually because you haven't compiled anything, so the IDE doesn't
know where to find the code-behind/dll to instantiate the controls, forms,
etc. Try closing the pages, compiling once (successfully) then try
reopening and designing....
--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET