⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 default.aspx

📁 用flash做的网页上传工具
💻 ASPX
字号:
<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default"
%><!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>SWFUpload Revision v2.1.0 Application Demo (ASP.Net VB.Net 2.0)</title>
	<link href="default.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="../swfupload/swfupload.js"></script>
	<script type="text/javascript" src="js/handlers.js"></script>
	<script type="text/javascript">
		var swfu;
		window.onload = function () {
			swfu = new SWFUpload({
				// Backend Settings
				upload_url: "../applicationdemo.vb.net/upload.aspx",	// Relative to the SWF file
                post_params : {
                    "ASPSESSID" : "<%=Session.SessionID %>",
                    "AUTHID" : "<%=AuthCookie %>"
                },

				// File Upload Settings
				file_size_limit : "2048",	// 2MB
				file_types : "*.jpg",
				file_types_description : "JPG Images",
				file_upload_limit : "0",    // Zero means unlimited

				// Event Handler Settings - these functions as defined in Handlers.js
				//  The handlers are not part of SWFUpload but are part of my website and control how
				//  my website reacts to the SWFUpload events.
				file_queue_error_handler : fileQueueError,
				file_dialog_complete_handler : fileDialogComplete,
				upload_progress_handler : uploadProgress,
				upload_error_handler : uploadError,
				upload_success_handler : uploadSuccess,
				upload_complete_handler : uploadComplete,

				// Flash Settings
				flash_url : "../swfupload/swfupload_f9.swf",	// Relative to this file

				custom_settings : {
					upload_target : "divFileProgressContainer"
				},

				// Debug Settings
				debug: false
			});
		};
	</script>
</head>
<body>
    <form id="form1" runat="server">
	    <div id="title" class="title">SWFUpload v2.1.0 Application Demo (ASP.Net VB.Net 2.0)</div>
			<div id="swfu_container" style="margin: 0px 10px;">
		    <div>
				<button id="btnBrowse" type="button" style="padding: 5px;" onclick="swfu.selectFiles(); this.blur();"><img src="images/page_white_add.png" style="padding-right: 3px; vertical-align: bottom;" alt="Add Icon" />Select Images <span style="font-size: 7pt;"></span></button>
		    </div>
		    <div id="divFileProgressContainer" style="height: 75px;"></div>
		    <div id="thumbnails"></div>
				<br />
			<div>
				<asp:Button ID="btnLogout" Text="Logout" runat="server" /><br />
				<br />
				This page demonstrations the following:
				<ul>
					<li>Using the ServerData</li>
					<li>Integrating with complex JavaScript applications</li>
					<li>Manually handling/uploading the file queue (without the queue plugin)</li>
					<li>Working around the Flash Cookie bug for ASP.Net Forms Authentication and Sessions.</li>
				</ul>
				<br />
				This does not demonstrate a real-world application.  The images are not saved and thumbnails are stored
				in the user's session which does not scale.  User credentials are stored in plain text in the web.config.
			</div>
	    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -