Using code for a model with MVC

I am trying to use ASP.NET Server Controls (ASP.TextBox, etc.) using MVC (to take advantage of validation, support for designers, etc.). How can I do this in MVC architecture? For example, how is my route button.clickto the controller or how can I access the data inside my server controllers through viewPage?

Can I point out an article or link that will help clean my dirty design? Or is it better for me to stick with MVC and inline styles?

+3
source share
2 answers

I would stick with the MVC path or go back to web forms ... Are you trying to get support from designers using Dreamweaver? This is a really good point; mvc HtmlHelper is not Dreamweaver friendly.

+6
source

I would not mix them; they are very different approaches and are not really compatible with each other during the same page request. RenderPartial may work, but I would not bet.

Note that for MVC views, the code file (usually empty) is also deleted in RC.

+1
source

All Articles