Opening .aspx file as partial view of cshtml in asp.net mvc
<p>I try to use ReportViewer in my MVC app.</p>

<p>I Have View that have button : </p>

<pre><code>&lt;button id="ReprintBol" class="button secondary right noPrint" style="display: inline-block; position: absolute; bottom: 0; right: 0"&gt;
    &lt;span class="noPrint" style="display: inline-block; padding: 0 0 0 10px; font-size: 11px; font-weight: bold;"&gt;Reprint&lt;/span&gt;
&lt;/button&gt;
</code></pre>

<p>Aspx File as partial view : </p>

<pre><code>@Html.Partial("ReportViewer")
</code></pre>

<p>And code to handle button click :</p>

<pre><code>&lt;script&gt;

$('#ReprintBol').click(function () {
    $("#Test").dialog({
        bgiframe: true,
        resizable: false,
        width: 700,
        height: 400,
        modal: true,
        title: 'Note',
        autoOpen: false,
        draggable: true,
        show: "blind",
        hide: "blind",
        bDestroy: true,
        overlay: {
            backgroundColor: '#000',
            opacity: 0.5
        },
    });
    $("#Test").dialog("option", "title", "Select Stops");
    $("#Test").dialog("open");
});

&lt;/script&gt;
</code></pre>

<p>My aspx view </p>

<pre><code>&lt;div id="Test" style="display: none"&gt;

   &lt;form id="form1" runat="server"&gt;
       &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
 &lt;/asp:ScriptManager&gt;
&lt;rsweb:ReportViewer ID="ReportViewer1" runat="server" Height="509px" Width="1542px"&gt;
&lt;/rsweb:ReportViewer&gt;
&lt;/form&gt; 
&lt;/div&gt;
</code></pre>

<p>When i try to run this code and hit button just error show and say that javascript have errors. I have checked it 10 times and don't see any.
What i do wrong ? </p>

<p>Thanks</p>