title: Printing a div with HTML in a Partial view in mvc 4 with C# using JavaScript
body: <p>I want to show a print in table format(design ) in c# mvc.</p>
  
  <p>The problem is that i am getting only the content and not in table format..</p>
  
  <p>This is my Print button.</p>
  
  <pre><code>&lt;input id="printdiv" type="submit" value="Print" onclick="return PrintDiv();" /&gt;
  </code></pre>
  
  <p>This is my Partial view div.</p>
  
  <pre><code>&lt;div id="dvmismatch" style="display :none;"&gt;
          @Html.Partial("_MismatchVendorList", Model)
      &lt;/div&gt;
  </code></pre>
  
  <p>This is my Script..</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      var $ = jQuery.noConflict();   
      function PrintDiv() {
          $("#dvmismatch").show();
          $("#dvmismatch").print();
          $("#dvmismatch").hide();
  
          }       
  
  &lt;/script&gt;
  </code></pre>
  
  <p>plz give me the Suggestions...</p>
  
  <p>i want to Print a div with HTML in a Partial view in mvc 4 with C# using JavaScript..But showing only the table Content. Not the Content with Table Format????</p>