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
Loading
Mike GoldPosted Mar 16, 2010, 1:34 AM
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 danielPosted Mar 16, 2010, 3:40 AM
http://www.nerdmotivation101.com/post/2008/11/18/ASPNET-MVC-Extending-Dynamic-Forms-with-the-Composite-Pattern.aspx