5
Answers

need to calculate the total days in a month in asp.net

need to calculate the total days in a month in asp.net
if i have salary is rs 2000 june month having 30 days . so 2000/30 67 rs per day
next month is july salary is same but days is increased as 31. so 2000/31 rs 65 per day
Answers (5)
1
Mehul Prajapati

Mehul Prajapati

NA 65 1.5k 7y
chrome.runtime.sendMessage have limited size to parameter. os i have used URL.createObjectURL to transfer data from content to background js.
 
Content.js 
 
var filedata = JSON.stringify({ data: data, fileName: fileName });
var save = new File([filedata], "filename.json", { type: "text/json;charset=utf-8" });
var postdata = window.URL.createObjectURL(save);
 
Background.js
 
var xhr = new XMLHttpRequest();
xhr.open('GET', postdata, true);
xhr.responseType = "text";
xhr.onload = function (e) {
   if (this.status == 200) {
      var myBlob = this.response;
      // myBlob is now the blob that the object URL pointed to.
   }
};
xhr.send();