function validateFileSize(id, maxsize) {
var btnsave = document .getElementById("Button2"); btnsave.disabled = false; fileupload.value.length< ; 5) { alert('Please select a file!'); return; }
var agent = window.navigator.userAgent;
Msie 7.0 ')! = -1;
var isIe8 = agent.indexof (' msie 8.0 ')! = -1;
// IE7 and IE8 get file path
if (ISIE7 || ISIE8) { Fileupload.select ();
Filepath = Document.selection.createrange (). Text;
}> // IE6 Get the file path
Else
{filepath = file. value; }
//PageMethods.ValidateFile(filepath, maxsize, ieCallBack);
alert(filepath);
}
if (agent.indexOf( "Firefox") >= 1) {
alert("FF"); alert(getValue()); var size = fileupload.files[0].fileSize ;
" onchange="disableSave(this);"/> ';
alert("File exceeds size! " ); }