How can we Generate HTML Controls on fly in MVC 4.0 RAZOR........... RRS feed

  • Question

  • Hi ,

         I am little confused about , how to create dynamic controls in mvc4.0 razor.

    We have a model , in which there are 3 lists.

    Lists are bound from controller.

    We want to pass data of that list in DropDownFor in View.

    These dropdowns are inside Webgrid.

    How can i display values of list inside dropdowns?

    I want to add rows(these rows should contain dropdowns) in the webgrid on the click event of the button.

    How can I do it ?

    • Edited by Dhruv.MSDN Wednesday, February 27, 2013 5:08 AM
    Wednesday, February 27, 2013 5:07 AM