Possible Duplicate:
Escape @ character in razor view engine
how can i use ‘@’ symbol in my script code in the MVC page (razor engine)
write a code like this :
<script>
var a = "this is a test text with @ symbol";
alert(a);
</script>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can escape by use of two ampersat symbols:
@@.As an aside, though I recently learned and think those coming across this question might also find it useful: you can do comments with a combination of ampersat signs and asterisks: