I am using FILE Upload-er in the Grid-view, then i find the ID of fileuploader Dynamically. but the problem is iam getting the value 0 of height & width. Below the code which iam using .
function validateFileSize() {
debugger;
for (var i = 1; i < document.getElementById('<%=gvDocuments.ClientID %>').rows.length; i++) {
var uploadControl = document.getElementById('<%=gvDocuments.ClientID %>').rows[i].cells[3].getElementsByTagName('INPUT')[0].id; //** here i find the ID of File Uploader
if (document.getElementById('<%=gvDocuments.ClientID %>').rows[i].cells[1].getElementsByTagName('SELECT')[0].value == "18")//** here i find the ID of DropDownlist
{
var newImg = new Image();
newImg.src = document.getElementById(uploadControl).value;
var height = newImg.height;
var width = newImg.width;
alert('The Image Dimension is ' + height + ' X ' + width + '');
}
}
}