I have hundred lines of code asp.net in my view, It make me difficult to find what I need it. So do anyone have some idea to divide it into separate files? As I know, in php , have function include().
1 Answer
Take a look at ASP.NET MVC partial views. These let you break down your view into separate reusable components, similar to user controls in ASP.NET WebForms.
1 Comment
JasCav
In addition what @Chris suggested, you can also use view templates to provide the base layout and then use partial views to fill in the gaps for each page.