adsense

Saturday, March 27, 2021

Could not load file or assembly Operation is not supported. (Exception from HRESULT: 0x80131515)

 When running .Net applications you might encounter the following error

 Could not load file or assembly [assembly_name]Operation is not supported. (Exception from HRESULT: 0x80131515)

This error occurs as a  result of a untrusted downloaded file. Follow these simple steps to overcome the issue.


1. Right click the dll and select properties

2. Click unblock button/check box



Regards,

Samitha

Sunday, March 7, 2021

Export html table using jQuery

If you need to export HTML table data to Excel Table to Excel 2 plugin can be used.

Its pretty simple.  Just add

Include JS

<script type="text/javascript" src="../dist/tableToExcel.js"></script>

javascript

<script type="text/javascript">
  $(function () {
      $("#btnExport").click(function(){
        TableToExcel.convert(document.getElementById("table1"), {
            name: "download.xlsx",
            sheet: {
            name: "Sheet1"
            }
          });
        });
  });
</script>
 
Add html Button

<button id="btnExport">Export To Excel</button><br><br>
 
Regards
Samitha