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

📄 default.aspx

📁 asp.net + flash 多文件批量上传
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" 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>Flash Upload</title>
</head>
<body>
    <form id="form1" runat="server" enctype="multipart/form-data" method="POST">
    <div>
        <%--
        
        Adding the flash uploader to the page.  <param name="wmode" value="transparent"> makes
        the movie transparent so any page styling can shine through.
        FlashVars is set to pass in the upload page and a javascript function if desired.
        The javascript function fires when the upload is completed.  This allows us to 
        call a codebehind function to refresh a gridView or anything else.
        A link button is used to perform this function.  The javascript is added in the pageLoad 
        in the code behin.
        To edit the flash file, Adobe/Macromedia has a 30-day trial of Macromedia Flash
        for download.  After that, you're on your own.
        --%>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
         codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
         width="575" height="375" id="fileUpload" align="middle">
            <param name="allowScriptAccess" value="sameDomain" />
            <param name="movie" value="FlashFileUpload.swf" />
            <param name="quality" value="high" />
            <param name="wmode" value="transparent">
            <PARAM NAME=FlashVars VALUE='uploadPage=Upload.axd<%=GetFlashVars()%>&completeFunction=UploadComplete()'>
            <embed src="FlashFileUpload.swf"
             FlashVars='uploadPage=Upload.axd<%=GetFlashVars()%>&completeFunction=UploadComplete()'
             quality="high" wmode="transparent" width="575" height="375" 
             name="fileUpload" align="middle" allowScriptAccess="sameDomain" 
             type="application/x-shockwave-flash" 
             pluginspage="http://www.macromedia.com/go/getflashplayer" />
        </object>
        <%--This link button is here so we can call the LinkButton1_Click even from javascript.
            Make the text empty so the link doesn't show up on the page.--%>
        <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click"></asp:LinkButton>
    </div>
        
    </form>
</body>
</html>

⌨️ 快捷键说明

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