Reputation: 2600
I am trying to use ASP.NET Server Controls (ASP.TextBox etc) with MVC (to take advantage of the validation power, designer support etc). How can I shoehorn this into MVC architecture? For example, how can my button.click
route to the controller or how can the data inside my server controllers be accessed via viewPage
?
Can point me to an article or reference that will help to clear up my messy design? Or, is it better for me to stick to MVC and inline styles?
Upvotes: 3
Views: 248
Reputation: 1062502
I wouldn't try to mix the two; they are very different approaches, and aren't really compatible with each-other during the same page request. RenderPartial might work, but I wouldn't wager any money.
Note that for MVC views, the code-behind file (usually empty) is also being removed in the RC.
Upvotes: 1
Reputation: 5959
I would stick with the MVC way or revert to web forms... Are you trying to get support for designers using dreamweaver? That's actually a good point, mvc's HtmlHelper is not dreamweaver friendly.
Upvotes: 6