select

Upload / Client-side Validation

Rate this demo: Feedback
Run example in: C# VB.NET Change Skin:
Vista
  • BlackBlack
  • DefaultDefault
  • ForestForest
  • HayHay
  • Office2007Office2007
  • OutlookOutlook
  • SimpleSimple
  • SitefinitySitefinity
  • SunsetSunset
  • TelerikTelerik
  • VistaVista
  • Web20Web20
  • WebBlueWebBlue
  • Windows7Windows7
Allowed extensions are: .zip,.jpg,.jpeg
  • Uploaded % ( ) Total
  • Uploaded files: % () Total files:
  • Uploading file:
  • Elapsed time:  Estimated time:  Speed:


Note: The largest allowed combined file size for upload in this example is 100MB. This is specified by the maxRequestLength="102400" set in Web.config file. If you attempt to upload files with total size greater that 100MB you will get "Page Not Found" error. For more information about uploading large files visit the help article Uploading Large Files

Example Source Code & Description

Instructions
Open in new window
  • Client-side Validation

    RadUpload provides the client-side function validateExtensions, which validates file extensions on the client. The validation is done by integrating the RadUpload with a CustomValidator which will prevent the page from submitting when there are selected files with invalid extensions.

    IMPORTANT NOTE: The ControlToValidate property of the CustomValidator must not be set!

    If the validation must be performed server-side, then handle the ServerValidate event of the CustomValidator in code-behind.

Compatible with ASP.NET 2.0, 3.5 AJAX enabled Accessibility Verified!Valid XHTML 1.1! Optimized for Visual Studio 2005, 2008
Copyright 2002-2010 © Telerik. All right reserved  | 
Telerik Inc., 460 Totten Pond Rd, Suite 640, Waltham, MA 02451

www.telerik.com  |  Terms of Use  |  Contact Us