I am creating a dynamic button while listing the data in the function below. When the button is clicked, I want the ID to go as a crypto string, but I could not get the item value.
function ProductListToDisplay(data) {
var content = "";
$(data).each(function (indx, item) {
content += '<tr>';
content += '<a class="mr-2" href="/CPY/CpyDoc_Dokumanlar/Delete?id=@Uri.EscapeDataString(CryptoProvider.Encrypt(item.id.ToString()))"></a> </span></td>';
content += '</tr>';
});
}