On client closing the Upload documents RadWindow function onClientClose(sender, eventArgs) { CloseRadWindow('ctl00_ContentPlaceHolder1_lblBadFiles', 'ctl00_ContentPlaceHolder1_lblTempFiles', 'ctl00_ContentPlaceHolder1_DivBadFiles', 'ctl00_ContentPlaceHolder1_HDMandatoryCV', 'ctl00_ContentPlaceHolder1_btnSave', 'ctl00_ContentPlaceHolder1_ValidationSummary1', 'ctl00_ContentPlaceHolder1_btnUpload', 'ctl00_ContentPlaceHolder1_DivTempFiles'); } function validationFailed(sender, eventArgs) / / If validation fails { UploadedFileFailed('ctl00_ContentPlaceHolder1_RadWindow1_C_lblError', 'ctl00_ContentPlaceHolder1_RadWindow1_C_lblNoFile', sender, eventArgs); } function FileUploadFailed(sender, eventArgs) / / If file is too big { UploadedFileError('ctl00_ContentPlaceHolder1_RadWindow1_C_lblError', 'ctl00_ContentPlaceHolder1_RadWindow1_C_lblNoFile', sender, eventArgs); } function Clear(sender, eventArgs) / / If client removes uploaded file { ClientDelUploadedFile('ctl00_ContentPlaceHolder1_RadWindow1_C_lblError', 'ctl00_ContentPlaceHolder1_RadWindow1_C_lblNoFile', 'ctl00_ContentPlaceHolder1_RadWindow1_C_DocPanel', 'ctl00_ContentPlaceHolder1_lblTempFiles', 'ctl00_ContentPlaceHolder1_DivTempFiles', sender, eventArgs); } function Uploaded(sender, eventArgs) / / Valid Uploaded Documents { ValidUploadedFiles('ctl00_ContentPlaceHolder1_RadWindow1_C_lblNoFile', 'ctl00_ContentPlaceHolder1_RadWindow1_C_DocPanel', sender, eventArgs); } / / call after page loaded $(document).ready(function AfterPageLoad() { PageLoaded('ctl00_ContentPlaceHolder1_ValidationSummary1', 'ctl00_ContentPlaceHolder1_btnSave', 'ctl00_ContentPlaceHolder1_HDSubmit', 'ctl00_ContentPlaceHolder1_RadWindow1_C_DocPanel'); }); {1} ##LOC[OK]## {1} function RadWindowprompt_detectenter(id, ev, input) { if (!ev) ev = window.event; if (ev.keyCode == 13) { var but = input.parentNode.parentNode.getElementsByTagName("A")[0]; if (but) { if (but.click) but.click(); else if (but.onclick) { but.focus(); var click = but.onclick; but.onclick = null; if (click) click.call(but); } } return false; } else return true; } ##LOC[OK]## ##LOC[Cancel]## {1} ##LOC[OK]## ##LOC[Cancel]##