I have a string created using asp.net MVC3 Razor block like this:
@{
var closingMsg = "Thank you. Your dispute has been submitted to your Creditor for review. You will receive an email alert on Creditors response.";
}
I want to add an image in it which i did like this:
@{
var closingMsg = "Thank you. Your dispute has been submitted to your Creditor for review. You will receive an email alert on Creditors response.'<img src='@Url.Content('~/Content/CR/images/sms-auth.png')' style='float: left; display:block; margin-right:6px;' alt='SMS text verification'/>'";
}
But It doesn't show image. Rather, It shows it as string. how can I change it ?
I am using it in Jquery UI like this:
function CloseDisputeDialog() {
$("#dispute_form").html("@closingMsg");
$("#dispute_form").dialog("addbutton", "Close", function() {
$("#dispute_res").val("close");
$("#dispute_form").dialog("close");
});
}
Regards, Asif Hameed