This one gives me a syntax error at @question

What is wrong here?

@{
    string question = "Really delete?";

<link href="~/Content/sweetalert/sweetalert.css" rel="stylesheet" />
<script src="~/Content/sweetalert/sweetalert.min.js"></script>
<script>
    $(function () {
        $(".delete").on("click", function (e) {
            swal({
                text: @question,
                title: "Delete Confirm",
                //some other stuff...

}

Related posts

Recent Viewed