dwezil
asked on
How do I reference the fileuploader, trying to make msgbox appeaer if fileuploader hasnt been submitted
I currently use this when one of my dropdowns hasnt be selected. Now I need to be able to stop the user from submitting a request if the attachment hasnt been attached and the path is still visible in the uploader. I was going for an onlick if uploader is not blank then msgbox popup. The problem is I dont know how to reference the uploader. .Text .Value or another way? This is my attempt...
All help much appreciated
All help much appreciated
btnSubmit.Attributes.Add("onclick", "if(document.getElementById('FileUploadControl').text!='') {window.alert('Please submit your attachment before submitting request');return false;}");
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thats annoying, I thought it would have been a simple thing to do
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
not even FileUploadControl.HasFile. Im clutching at straws here
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your help Tim
ASKER