I have an application that is using MVC5 with C# and Razor Engine. This view displays a huge table:
<table class="table table-bordered" id="pendingTable"> <thead> <tr> <th>Actions</th> <th>Order Status</th> <th>Order Details</th> <th>Order Date</th> <th>Expected Delivery Date</th> <th>Ordered By</th> <th>Employee ID</th> <th>Employee Status</th> <th>Employee Name</th> <th>Employee Type</th> <th>Scope</th> <th>Delivery Address</th> <th>Comment</th> </tr> </thead> <tbody> <tr> <td></td> <!-- At least 8 TDs each one with hundreds of lines of code--> </tr> </tbody> </table>
Now, the problem is that everything is in one huge file. As you can guess, this file is a nightmare to update and maintain.
I am familiar with the C#
region directive, but I can't find anything similar for Views. I also know about partial views, but I have the strong impression from discussions in Stack Overflow that these should only be used when I have a piece of code in a View that is re-usable, which is not the case.
What is the best way to deal with Views this large?