ASP. net2.0 uploads large file third-party control radupload

Source: Internet
Author: User
1. Add the following content to Web. config:
<Httphandlers>
<Add verb = "*" Path = "telerik. raduploadprogresshandler. aspx" type = "telerik. webcontrols. raduploadprogresshandler, radupload. net2"/>
</Httphandlers>
<Httpmodules>
<Add name = "raduploadmodule" type = "telerik. webcontrols. raduploadhttpmodule, radupload. net2"/>
</Httpmodules>

2. Reference and declare use
<% @ Register tagprefix = "Radu" namespace = "telerik. webcontrols" assembly = "radupload. net2" %>
<Radu: radprogressmanager id = "radprogressmanager1" runat = "server"/>
<Radu: radupload id = "radupload1" runat = "server" Skin = "web20" initialfileinputscount = "2"
Maxfileinputscount = "4" allowedfileextensions = ".doc,.rar" maxfilesize = "10000000"
Targetfolder = "~ /Upload/kjcx "overwriteexistingfiles =" false "/>
<Asp: button id = "buttonsubmit" runat = "server" cssclass = "raduploadbutton" text = "Submit! "/>
<Radu: radprogressarea id = "progressarea1" runat = "server"/>
Many parameter settings reference: http://www.telerik.com/demos/aspnet/Upload/Examples/Overview/DefaultCS.aspx

3. Control the file size. If it is too large, a page error is reported.
Web. config
<Httpruntime usefullyqualifiedredirecturl = "true" maxrequestlength = "8192" requestlengthdiskthreshold = "8192"/>

Error help document:
Http://www.telerik.com/support/kb/article/b454K-gth-b454T-cee.aspx
Http://www.telerik.com/help/radUpload/v2_Net2? Uploadinglargefiles.html

The above content is reprinted by others. Today, I downloaded a source code for uploading large-capacity files. Two of the rad controls are used, and a M file is uploaded successfully, this control will be used to upload large-capacity files in the future. As a solution for uploading large-capacity files, haha!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.