3

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?

2 Answers 2

6

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.

Sign up to request clarification or add additional context in comments.

2 Comments

even VS Desginer cannot show the elements generated using HTMLHelper Object so in practice you cant have WYSWYG kind support in MVC :(
I should mention, working with designers has been harder with mvc :/ having explain the views is getting a bit old
1

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.

1 Comment

Yes I agree with your , but my point is that Microsoft still can embed the Server Controls in MVC architecture and after delving in their details i realized the MVC framework by MS or MonoRail by Open Source guys do not have much differences then,

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.