How to create the confirm box (modal popup) in asp.net MVC?
<p>How to create the confirm box (modal popup) after i click this button:</p>

<pre><code>&lt;button id="sellButton" onclick="sendRequest(@item.Id)"&gt;Sell&lt;/button&gt;
</code></pre>

<p><strong>HERE POPUP MODAL (YES/NO)</strong></p>

<p>When user will confirm, then this should happen</p>

<pre><code>&lt;script&gt;
function sendRequest(id)
{
    var request =
    {
        "itemId": id
    };
    $.ajax({
        url: '/It/Sell',
        data: JSON.stringify(request),
        type: 'POST',
        dataType: "html",
        contentType: 'application/json; charset=utf-8',
        error: function (err) {
            alert('Error: ' + err.statusText);
        },
        success: function (result) {
            $('#Table').html(result);
          },
        async: true,
        processData: false
    });
};
&lt;/script&gt;
</code></pre>