I've run into a couple very irritating problems when using the web
page designer within MS Dev Studio:
1) If I have added any custom attributes to an element in the ASPX
file via the HTML tab (e.g. adding runat="server" to the title
element, those changes are lost if I make any changes to the page
via the Designer tab.
2) If I have added any custom attributes to an element in the code-
behind file (e.g. TextBox1.Attributes.Add("OnChange", "DoSomethings
();" -- to enable client-side calculations), those changes are also
lost if I do anything in the designer. It appears that I have to add
this code to the InitializeComponent method, which is constantly
overwritten by the designer. If I put the statement in the Page_Load
method, it doesn't work.
I'm love 99% of the Dev Studio features, but it's not acceptable to
have our code being overwritten. Does anyone know of a workaround?