0
Use the Html.Raw()
to pass the string without Razor encoding.
<script type="text/javascript" charset="utf-8">
$(document).ready(function () {
alert("@Html.Raw(ViewBag.Erro)";
});
</script>
0
0
Use the Html.Raw()
to pass the string without Razor encoding.
<script type="text/javascript" charset="utf-8">
$(document).ready(function () {
alert("@Html.Raw(ViewBag.Erro)";
});
</script>
Browser other questions tagged javascript asp.net-mvc character-encoding
You are not signed in. Login or sign up in order to post.
Worked perfectly
– Diego Berleis
@Diegoberleis, I’m glad I could help you! Could you mark the answer as "Best Answer" to help other people who might have the same problem?! Thanks xD
– Victor Carnaval