I want to display an alert message like follows
alert('' + @Model.DictionaryTest["alertInvalidTemplate"] + '');
but it does not work, I tried the following way too
alert(@Model.DictionaryTest["alertInvalidTemplate"]);
and this too
alert("" + @Model.DictionaryTest["alertInvalidTemplate"] + "");
$.each(Mydata, function(key, val){ // This function will called for each key-val pair. // You can do anything here with them. });