Hi All,
To start with I have a page with RadUpload control alongwith RadProgressArea,one listbox and three asp buttons(Named Add to Upload,Remove Selected,Remove All.These are not link buttons but asp buttons).Once the user clicks on Add to Upload button I need to add the uploaded file into the list box.
I have the following specific requirement with regards to the RadUpload control:
File size more than 150 MB shouldnot be allowed to get uploaded (that means progress bar should not be shown when the file size is more than 150 MB and a popup message with the error should be shown)
Now I am facing the following issues:
1. Whenever I select a file and click on any of these above mentioned buttons I am getting the Progress bar which is not the expected behavior. I just want the progress bar to appear once only when Add to Upload button is clicked. I have made the property UseSubmitBehavior for all other buttons as false as mentioned in this link:http://www.telerik.com/help/aspnet-ajax/upload_howtopreventupload.html but of no use.
2.To my surprise I am also getting the progress bar if the uploaded file is more than 150 MB although I have set MaxFileSize=157286400 which means 150MB but the uploader is not uploading it instead I want to show an error message box to the user and the user shouldnot have to wait for a long time.
Please telerik support team respond me with a detailed code snippet asap since its very urgent.
Note: I cannot use jquery or RadScriptManager functions so I need to use only javascript and server side methods(I am using ASP.Net 2.0 framework)
Regards,
Shubh
To start with I have a page with RadUpload control alongwith RadProgressArea,one listbox and three asp buttons(Named Add to Upload,Remove Selected,Remove All.These are not link buttons but asp buttons).Once the user clicks on Add to Upload button I need to add the uploaded file into the list box.
I have the following specific requirement with regards to the RadUpload control:
File size more than 150 MB shouldnot be allowed to get uploaded (that means progress bar should not be shown when the file size is more than 150 MB and a popup message with the error should be shown)
Now I am facing the following issues:
1. Whenever I select a file and click on any of these above mentioned buttons I am getting the Progress bar which is not the expected behavior. I just want the progress bar to appear once only when Add to Upload button is clicked. I have made the property UseSubmitBehavior for all other buttons as false as mentioned in this link:http://www.telerik.com/help/aspnet-ajax/upload_howtopreventupload.html but of no use.
2.To my surprise I am also getting the progress bar if the uploaded file is more than 150 MB although I have set MaxFileSize=157286400 which means 150MB but the uploader is not uploading it instead I want to show an error message box to the user and the user shouldnot have to wait for a long time.
Please telerik support team respond me with a detailed code snippet asap since its very urgent.
Note: I cannot use jquery or RadScriptManager functions so I need to use only javascript and server side methods(I am using ASP.Net 2.0 framework)
Regards,
Shubh