Radupload of the radcontrols Control

Source: Internet
Author: User

Namespace: Telerik. Windows. Controls
Assembly: Telerik. Windows. Controls. Input (in telerik. Windows. Controls. Input. dll)

Radupload is part of the client and server. The client executes a platform that uses Silverlight completely in the browser. Submit the files processed by the server to the client. Check online video tutorials for how to install
Http://www.telerik.com/support/videos/preview/b221i-bkm-b221c-kmt.aspx

To add a server, follow these steps:

Create an ASP. NET web applicationProgram

Add reference telerik. Windows. raduploadhandler

Add ashx processing-raduploadhandler. ashx

The following is an exampleCodeProcessing

Raduploadhandler. ashx
<% @ Webhandler Language = "C #" class = "raduploadhandler" %>
Using system;
Using system. Web;
Public class raduploadhandler: telerik. Windows. raduploadhandler
{
}

Create a new folder for storing uploaded files. In this example, the folder is named "uploads"

This should be part of the currently available server-side installer. To test the created web application and processing program, convert the raduploadhandler. ashx file of your browser. You should see the following output if everything is correct:

Configure the client now

Set uploadserviceurl property. This URL should be an absolute URL pointing to the upload handler. This domain name should be hosted by the upload handler in the same domain in Silverlight application hosting. In our case, the uploadserviceurl should point to http: // localhost: 6519/raduploadhandler. the Application of ashx and Silverlight should be stored in the same domain-for example, about this URL: http: // localhost: 6519/index.html. Note that the application on this port should be the same (in my case, the port is set to 6519, but any other port, including the default port 80, can run ).

The sample code is as follows:

width = "" D: layoutoverrides = "width"
targetfolder = "uploanalyticdb"
uploadserviceurl = "http: // localhost: 6519/raduploadhandler. ashx "

isautomaticupload = "true"
filter = "image files (*. GIF ;*. JPG ;*. JPEG ;*. PNG) | *. GIF ;*. JPG ;*. JPEG ;*. PNG "
overwriteexistingfiles =" true "
verticalignment =" TOP "
fileuploaded =" success "
uploadstarted =" imgload_uploadstarted "
Height =" 196 "background =" # ffffffff "
/>

Targetfolder: Specifies the path of the uploaded file.

Uploadserviceurl: The address uploaded to the server

Filter: File Format (used in my example to upload images)

Now the client configuration is complete.

OriginalArticleAdd http://www.cnblogs.com/googlebaidu/articles/1501638.html to reference

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.