title: Why Exporting Gridview to Excel is exporting Whole Page Content?
body: <p>I am Working on a project where <strong>I have to export GridView Content to xls</strong> file..</p>
  
  <p><strong>The Problem is it exports the whole page content instead of just GridView</strong>.. I have looked and tried for various solutions provided online and stackoverflow too but nothing worked..</p>
  
  <p>I am using <strong>VS2012</strong> on <strong>Windows 8.1</strong> and Its a <strong>Website Project</strong> and I have used <strong>C#</strong> and <strong>MySql</strong>. </p>
  
  <p>I also used <strong>Epplus Library</strong> and than it worked properly on local server but when I put it Live after publishing Website, it was suppose to work but It again exported whole page Content rather than gridView on live Server.</p>
  
  <p>I am not posting Code for now as I guess the problem is not regarding code but If anyone want code here I will provide..</p>
  
  <p>Thanks In advance..!!</p>