modal popup not working on url action
<p>on checkbox click,i want to go to partial view.
but the page is rediredted to another page intead of loading popup</p>

<pre><code>    @{
        var url = Url.Action("Delete", "Resume", new {data_modal = "", id = item.resumeID }, null);
    }

   &lt;script src="~/Scripts/modalform.js"&gt;&lt;/script&gt; 

    @Html.CheckBox("mycheckbox", new { onclick = "window.location = '" + url + "'" })

&lt;div id='myModal' class='modal fade in'&gt; 
    &lt;div class="modal-dialog"&gt; 
        &lt;div class="modal-content"&gt; 
            &lt;div id='myModalContent'&gt;&lt;/div&gt; 
        &lt;/div&gt; 
    &lt;/div&gt; 
&lt;/div&gt;
</code></pre>