vendredi 28 août 2015

Syntax Error in MVC view

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...

Aucun commentaire:

Enregistrer un commentaire