Hello Everybody,
how to create dynamic HTML controls in mvc in asp.net?
I have create dynamic control as runtime.
my Query result is returns my control name like this....
Control name
---------------
Textbox
Textbox
Dropdownlist
Please help me regarding this query.
Thanks,
Jitendra Patel
How to create dynamic control in MVC Application?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Mike GoldRank #50 · 30.6K reputationPosted Mar 15, 2010, 9:34 PM EDT
and in the success: section of the $.ajax call, inject the raw html returned from the controller into a div statement.
The controller can construct the html dynamically through a string using JQuery's html() extension.
What you return in the controller could be a TextBox or DropDownList
paul daniel189 reputationPosted Mar 15, 2010, 11:40 PM EDT
http://www.nerdmotivation101.com/post/2008/11/18/ASPNET-MVC-Extending-Dynamic-Forms-with-the-Composite-Pattern.aspx