ASP.NET auto-generate aspx.designer.cs turn off?
Posted
by Joris
on Stack Overflow
See other posts from Stack Overflow
or by Joris
Published on 2010-05-26T21:38:39Z
Indexed on
2010/05/27
6:01 UTC
Read the original article
Hit count: 311
Hey all,
As I'm working on a asp.net/c# project, I'm confronted with the foobar.aspx.designer.cs that auto generates it's content. eg, when I'm changing the code/designer, the designer.cs automatically updates it's content.
As I'm bit of a control-dude, I'd like to maintain the code myself. I'm not happy with the overkill of comments I don't need. Like:
/// <summary>
/// Form1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm Form1;
While I'd like to see the following:
protected global::System.Web.UI.HtmlControls.HtmlForm Form1;
protected global::System.Web.UI.WebControls.Button Button3;
etc, etc
(don't mind the naming, ofcourse I'd give it some distinguishing nameing)
How to fix this? I checked google on this one, but couldn't find an answer so quickly...
© Stack Overflow or respective owner