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