I'm calling a javascript function in a grid. Here is the code.
<div style="width: 100%; float: left; margin-bottom: 10px;">
<a href="#" onclick='<%# "ShowDetailPopup("+Eval("subscriberId").ToString()+","+Eval("Debt") +"," + Eval("Receivable") +","+
Eval("LegalAmount") + "," + Eval("fullName").ToString() +")" %>'>Detay</a>
</div>
Here is the js function.
function ShowDetailPopup(subscriberId, Debt, Receivable, LegalAmount, fullName) {
var popupWindow = pcDocument.GetWindowByName("showDocumentWindow");
pcDocument.ShowWindow(popupWindow);
pcDocument.SetWindowContentUrl(popupWindow, '/WEB/Pages/DebtAndReceiveDocument.aspx?ID=' + subscriberId + "&Debt=" + Debt +
"&Receivable=" + Receivable + "&LegalAmount=" + LegalAmount + "&fullName=" + fullName);
}
Debt, Receivable and LegalAmount are all decimal fields.
Example values:
Debt = 4,65
Receivable = 13,00
LegalAmount = 0
When I call function, the page renders like this.
<a href="#" onclick='ShowDetailPopup(18069606,4,65,13,00,0,BILL GATES)'>Detay</a>
How can I correctly send the decimal values?