In MVC, var msg=<script>alert("Hello")</script>,what is the output for @Html.Raw(msg) in Razor View [Resolved]

Posted by Kasani007 under ASP.NET MVC on 7/21/2014 | Points: 10 | Views : 1270 | Status : [Member] | Replies : 2
In MVC, var msg=<script>alert("Hello")</script>,what is the output for @Html.Raw(msg) in Razor View ?




Responses

Posted by: Goud.Kv on: 7/21/2014 [Member] [MVP] Gold | Points: 50

Up
0
Down

Resolved
Hi,

You will get a message "Hello" as alert.

Thanks & Regards,
Krishna

Kasani007, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sheonarayan on: 7/21/2014 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
You will get exactly what you have written, so it should get alert.


Regards,
Sheo Narayan
http://www.dotnetfunda.com

Kasani007, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response