New ASP.NET programmer - how do you maintain existing Visual Studio auto generated code in ASP.NET?

66 Views Asked by At

Gridview and detailsview app: the select statements, aspx.cs codes, etc of the old program were auto generated from Visual Studio wizard. Now, they are asking to add another column to the select statement and a drop down box for this column in the existing detailsview. How do I update it?

By manually typing and inserting the new code to the existing files, or by using the Visual Studio wizard to re-generate the old code with new requirements? Will I lose the old author initials and comments because it will auto-regenerate all code?

1

There are 1 best solutions below

12
Adinugraha Tawaqal On

You now have a choice, do you want to code the HTML pages or stick to drag and dropping control. For consideration, you cannot drag and drop javascript code and certainly cannot use drag and drop control to create MVC's View.

Or your real question is how to put drop down on gridview ? See here