hi thank you for your help.
it is working fine as expected however i used ur logic in a diff way
function validate() {
if ($(".ajax__fileupload_fileItemInfo").length > 0) {
alert('file exist');
// $('.ContentPlaceHolder1_AjaxFileUpload1_UploadOrCancelButton').hide();
// $("[id$=AjaxFileUpload1_UploadOrCancelButton]").click();
$(".ajax__fileupload_uploadbutton").trigger("click");
alert("Hiiii");
return true;
}
else {
alert('select your file');
return false;
}
};
and called it on button client upload.