Click here to Skip to main content
15,906,463 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,,

I am using AJAX File upload control,,, i have set maximumnumber of files attribute to 1 so that only 1 file can be uploaded but the thing is happending that only one file got select but when i upload that one.. than select button gets enable again and i can upload one more file and so and so...

I wanted to restrict the ajax control so that even after uploading first file it should not show the select button and should not allow any other file to be upload again..


Kindly help.


Regards,


:)
Posted
Comments
Jameel VM 4-Jun-13 7:45am    
please post the code.
VICK 4-Jun-13 7:50am    
asp:AjaxFileUpload ID="AjaxFileUpload1" runat="server"
AllowedFileTypes="pdf" ContextKeys="fred" MaximumNumberOfFiles="1" OnUploadComplete="ajaxUpload1_OnUploadComplete"
ThrobberID="myThrobber" />

I am using standard tags and in code behind i am just saving the files in specific directory

AjaxFileUpload1.SaveAs(fileUploadPath2);
Prasad Khandekar 4-Jun-13 10:24am    
That logic you will have to build on server side. Control won't help you in that. The MaximumNumberOfFiles property enables you to limit the number of files that a user can add to the upload queue and is valid for a single request.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900