-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDefault.aspx
44 lines (37 loc) · 1.56 KB
/
Default.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<%@ Page Language="VB" AutoEventWireup="true" CodeBehind="Default.aspx.vb" Inherits="Upload.Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link rel="stylesheet" type="text/css" href="http://cdn3.devexpress.com/jslib/15.2.7/css/dx.common.css" />
<link rel="stylesheet" type="text/css" href="http://cdn3.devexpress.com/jslib/15.2.7/css/dx.light.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/globalize/0.1.1/globalize.min.js"></script>
<script type="text/javascript" src="http://cdn3.devexpress.com/jslib/15.2.7/js/dx.webappjs.js"></script>
</head>
<body>
Http Handler Uploading:
<div id="uploadContainer"></div>
Form Submit Uploading:
<form id="form1" enctype="multipart/form-data" runat="server">
<div id="formUploadContainer"></div>
<input type="submit" />
</form>
<script type="text/javascript">
$("#uploadContainer").dxFileUploader({
buttonText: 'Select file',
labelText: 'Drop file here',
multiple: true,
accept: 'image/*',
uploadUrl: 'http://localhost:62539/Uploader.ashx'
});
$("#formUploadContainer").dxFileUploader({
buttonText: 'Select file',
labelText: 'Drop file here',
multiple: true,
accept: 'image/*',
uploadMode: 'useForm'
});
</script>
</body>
</html>