Nothing
Nothing

Reputation: 2642

Divide block of asp.net mvc code into different file parts

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().

Upvotes: 1

Views: 210

Answers (1)

Chris Fulstow
Chris Fulstow

Reputation: 41902

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.

Upvotes: 1

Related Questions