I am trying to create a DataEntry Grid/table like structure in which user appends new row on button click . The row will have TextBoxes, DropDown, Calendar Control. All of this is supposed to be done on client side. So far I have this and as you can see I am trying to fill DropDownusing var data object (which is not working).. what I need your help with is filling the DropDown from database. How Am I suppose to do this?

I am now able to fill the first DropDown with the hardcoded var data but rest of the dynamically generated DropDowns are always empty

网友答案:

I think best way to bind that dropdown is from client side. So create a web service or web api that will fetch data for that dropdown and then with jquery Ajax call get data from server side and fill that dropdown.

Another method is to create webmethod for fetching data.
You can find more information about that in following link.