I have a .aspx web form with .aspx.cs code. The code is nearly 2,000 lines long, and it reaches the point where the only way to easily navigate it is to put a ton of spaces between sections, zoom out so that I can see the physical appearance of the code and then zoom in where I want to edit. In other words, this is a big pain. I would like to split this line 2000 into different files, which are concepts in the code. Therefore, when I need to change some functions on the jQuery tab “Employee” on the page, I can just go to a partial class that contains only the “Employee” functionality.
In the "New item" menu, I can not find anything for the additional file with the code, and not the .aspx.cs file. I tried to create a .cs file by renaming it to .aspx.cs and assigning it the same partial class name --- no go, I did not see any of the methods of the incomplete class by default, nor the controls on page
I understand the concept that if your “class”, in the sense of OOP, takes so long, it does too much. What I don't understand is a “class” in terms of code for a web form. A form cannot actually be broken down into smaller forms. User experience should be carried out on one page.
Cptsupermrkt
source share