I have controls that insert from jQuery. The controls can change depending on the option you choose before, that is, they are not controls have created statically, but to think through jQuery with the option you choose. My question is is possible to access a list of controller in HttpPost?
This is the function that performed to insert controls:
function GetProperties() {
var subcategory = $("#ddlSubcategory").val();
$.getJSON("/AddAdBox/GetProperties?id=" + subcategory, null, function (data) {
$.each(data, function (i, item) {
//item.ID // PROPERTY ID
//item.NAME //NAME PROPERTY
//item.OPTION_PROPERTY[0].ID //ID OPTION ID
//item.OPTION_PROPERTY[0].NAME // NAME OPTION
//item.OPTION_PROPERTY.length // SI ES 0 ES TXT SINO SELECT
var itemlist = '';
//<div class="col-sm-6">
// <label>
// Título
// </label>
// <input type="text" name="email" class="form-control" placeholder="Título">
// </div><!-- /.col -->
if (item.OPTION_PROPERTY != null) {
if (item.OPTION_PROPERTY.length > 0) {
itemlist = '<div class="col-sm-6 animated" style="opacity:1;"><label>' + item.NAME + '</label>';
itemlist += '<select id="ddl"' + item.NAME + '">';
for (var i = 0; i < item.OPTION_PROPERTY.length; i++) {
itemlist += '<option value="' + item.OPTION_PROPERTY[i].ID + '">' + item.OPTION_PROPERTY[i].NAME + '</option>';
}
itemlist += '</selec>';
itemlist += '</div>';
}
}
else {
itemlist = '<div class="col-sm-6 animated" style="opacity:1;"><label>' + item.NAME + '</label>';
itemlist += '<input type="text" name="' + item.NAME + '" class="form-control" placeholder="' + item.NAME + '">';
itemlist += '</div>';
}
$("#properties").append(itemlist);
});
});
}