I want to add Html controls in runtime using Microsoft MVC2 RC2 to create a dynamic data entry form.
(Preferably also supporting the UIHint feature)
What is the recommended way of doing this?
Best Regards,
Rune
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s no such notion as controls in an mvc application as it is in a WebForms application. There are models, controllers, views, subviews, helpers. So I guess you could either add them using javascript or create a model containing all the necessary information so that at runtime an html helper or a subview will be capabale of generating the corresponding HTML for these controls from this model.