string[] ppm1 = Directory.GetFiles(saveloc, "*.png", SearchOption.AllDirectories); ns.NumericComparer ns = new ns.NumericComparer(); Array.Sort(ppm1, ns);
<script> var canvas = document.getElementById('myCanvas'); var context = canvas.getContext('2d'); var imageObj = new Image(); imageObj.onload = function () { context.drawImage(imageObj, 69, 50); }; imageObj.src = "<% = ppm1[0] %>"; </script>
but in the aspx page inside the script it shows me ppm1[0] is null.how can i get the c# Arrays in javascript
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)