<%@ page language="C#" autoeventwireup="true" inherits="TestJQueryUpload, App_Web_yjdmcdrp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="js/jquery.js"></script>
    <link href="js/JQueryUpload/uploadify.css" type="text/css" rel="stylesheet" />

<script type="text/javascript" src="js/JQueryUpload/swfobject.js"></script> 

<script type="text/javascript" src="js/JQueryUpload/jquery.uploadify.v2.1.4.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $("#uploadify").uploadify({
        'uploader': 'js/JQueryUpload/uploadify.swf',
        'script': 'js/JQueryUpload/Upload.aspx?courseid=' + document.getElementById("hideCourseId").value,
            'cancelImg': 'js/JQueryUpload/cancel.png',
            'folder': '/upload/CourseAdjunct',
            'queueID': 'fileQueue',
            'auto': false,
            'multi': true,
            'fileDesc': '音频wma;mp3;视频wmv;swf;flv;文本txt;电子书pdf;幻灯片mht ',
            'fileExt':'*.wma;*.mp3;*.wmv;*.swf;*.flv;*.txt;*.pdf;*.mht;',
            'sizeLimit':'500000000',

            //'buttonImg':'/images/null.jpg',
            'onComplete': function(event, queueID, fileObj) {
            alert('文件：' + fileObj.name + "size:" + fileObj.size + "格式：" + fileObj.type); 
             
             }
        });
    }); 
    
    //用ajax的方式向数据库插入课件信息
</script> 
</head> 
<body> 
<form id="form1" runat="server"> 
<asp:HiddenField ID="hideCourseId" Value="154" runat="server" />
<input type="file" name="uploadify" id="uploadify" /> 
<a href="javascript:$('#uploadify').uploadifyUpload()">上传</a>| <a href="javascript:$('#uploadify').uploadifyClearQueue()"> 取消上传</a> 
<div id="fileQueue"></div> 
</form> 
</body> 
</html> 



