File upload, no refresh upload, file bulk upload, batch No refresh upload, these words seem very many this year, regardless of that upload can meet the actual needs is good, general upload files, point file browsing box, can only select a single file, if you want to upload multiple, browse many times, and then click on the bulk upload on it, Also very good, also does not refresh also has the progress to show, completely good. There are many examples of uploading files on the Web, and you can click and hold down the CTRL key or SHIFT key to select multiple, and then upload. But it's like this. NET version of a few, friends sent me a clean up the demo, and then I sorted a little bit, feel good, you can share it for everyone, well and bad do not say, because there is no perfect thing, can be applied to everyone's practical needs on the line. First of all, this is the way to upload the mechanism is the same as the general no refresh upload the same embedded a SWF file, with the JS call to achieve no refresh effect (test demo end of the article download)
(1) Browse the Upload file box to set the file filter format:
if (form1.ddlfiletype.value== "P")
{
size_limit= "0";//1m=1048576;
Types= "*.jpg;*.bmp;*.gif;";
types_description= "image file";
}
ElseIf (form1.ddlfiletype.value== "a")
{
size_limit= "0";
Types= "*.mp3;*.wmv";
types_description= "audio file";
}
ElseIf (form1.ddlfiletype.value== "R")
{
size_limit= "0";
Types= "*.rm;*.avi;*.mpeg;*.rmvb;*.wmv;*.dat";
types_description= "video file";
else
{
size_limit= "0";
Types= "*.*";
types_description= "All Documents";
}