ascx.designer.cs

ascx.designer.cs

Post by Peter Kir » Tue, 29 Aug 2006 19:50:27


Hi

has anyone ever experienced that Visual Studio does not update the
*.ascx.designer.cs file correctly? How do I force it to regenerate?

For example, sometimes I can add controls to the ascx (an asp:Button for
example), yet the declaration for the button is not added to the designer
file, and hence the button does not exist in the code behind.

Thanks,
Peter
 
 
 

ascx.designer.cs

Post by cmoor » Wed, 30 Aug 2006 12:00:59

If using WAP, it is fundamentally broken, note that if you change namespaces
they will also break, and are ONLY caught at runtime!!

 
 
 

ascx.designer.cs

Post by Peter Kir » Wed, 30 Aug 2006 15:34:17

"cmoore" < XXXX@XXXXX.COM > skrev i en meddelelse





Yes, it is a "web application project" I am involved in, and where I have
seen strange things with the designer file.
I haven't seen the problem you mention.

If there are bugs with this project type is there likely to be a fix any
time soon?

Peter
 
 
 

ascx.designer.cs

Post by cmoor » Wed, 30 Aug 2006 15:58:26

Despite what MSoft says WAP is NOT supported, even though without WAP vs
2005 is pretty useless for any one coming from vs 2003.

Basically the feedback from MSoft is that these things really don't matter
that much ( i.e they knew about the problems when the product was released,
and decided that fixing them was too hard), and that developers can work
around them anyway.

Also given the problems with vs 2003 SP1, it does not look like MSoft can
get anything right these days ( i.e vs 2003 SP1 is now 3 years in the
process and breaks existing deployments), what chance is there for vs 2005
SP1!! assuming they care enough to fix up WAP..

So bottom, line we have to put up this CRAP..









for
designer
 
 
 

ascx.designer.cs

Post by veerleverb » Wed, 06 Sep 2006 14:27:16

Hi,

I have Visual Studio 2005. When I create a page with lots of custom
controls, Visual Studio very often does not update the ascx.designer.cs
file when adding one or more controls. This means that I cannot access
these controls in my code file because they are not declaired. What can
I do when the file is not updated to force it to being updated?

Any ideas?
Thanks in advance!

Veerle
 
 
 

ascx.designer.cs

Post by Peter Kir » Sat, 09 Sep 2006 19:01:44


< XXXX@XXXXX.COM > skrev i en meddelelse


This is like the problem as I experience. The weird thing is that some of my
pages work fine with the user-controls, other pages do not update the
designer.cs file. I can't really figure out why - some setting/properties
for the page or project?

The only solution I have found is to manually fix the designer.cs file. I
figure that if VS doesn't update this file anyway, it's not going to
overwrite my changes.... but I guess I can't be sure about that...

Peter