i have a java script dictionary. its dictionary<string,dictionary<string,string>>
if it is helpfull.
i cant pass it to controller class using jquery ,ajax
is ther any way to do that?
<script language="javascript" type="text/javascript">
var dictionary = {};
var props = {};
props["test1"]="test1";
props["test2"]="test2";
props["test3"]="test3";
dictionary["test"]=props;
function SaveForm() {
$.ajax({
type: 'POST',
url: '/Home/SaveForm',
data: { formName: $('#formName').val(), dics: dictionary },
//contentType: 'application/json'
dataType: 'json'
});
}
</script>
public void SaveForm( Dictionary<string,<string,string>>dics)===> dics is null always