Dynamic form controls in ASP.NET MVC 5

I am starting to get into MVC 5 a little bit and I made a small application which pulls data via a Linq query from a SQL database. My view has a series of if statements to determine what type of form field is needed so if the value for my "type" field is "input" I have RAZOR generating me an text box and so on. Is there a better or more efficient way of doing this in MVC?

by Chimichanga13 via /r/csharp

Leave a Reply