asp.net fileupload File Upload code

Source: Internet
Author: User

ASP tutorial. NET FileUpload File upload code

<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>

<link rel= "stylesheet" type= "text/css Course" href= "History/history.css"/>

<title></title>
<script src= "ac_oetags. Web Effects" language= "Web Effects" ></script>

<!--begin browser History required Section-->
<!--end Browser history required Section-->

<style>
body {margin:0px; Overflow:hidden}
</style>
<script language= "Web Effects" type= "Text/javascript" >
<!--
// -----------------------------------------------------------------------------
Globals
Major version of Flash required
var requiredmajorversion = 9;
Minor version of Flash required
var requiredminorversion = 0;
Minor version of Flash required
var requiredrevision = 124;
// -----------------------------------------------------------------------------
-->
</script>

<body scroll= "No" >
<script language= "javascript" type= "Text/javascript" >
<!--
Version check for the Flash Player this has the ability to start player product install (6.0R65)
var hasproductinstall = detectflashver (6, 0, 65);

Version check based upon the values defined in Globals
var hasrequestedversion = Detectflashver (requiredmajorversion, requiredminorversion, requiredrevision);

if (Hasproductinstall &&!hasrequestedversion) {
Do not modify the following four lines
Location visited after installation are complete if installation is required
var Mmplayertype = (Isie = = True)? "ActiveX": "Plugin";
var mmredirecturl = window.location;
Document.title = Document.title.slice (0) + "-Flash Player Installation";
var mmdoctitle = Document.title;

Ac_fl_runcontent (
"src", "Playerproductinstall",
"Flashvars", "mmredirecturl=" +mmredirecturl+ ' &mmplayertype= ' +mmplayertype+ ' &mmdoctitle= ' +mmdoctitle+ ' ",
"width", "100%",
"Height", "100%",
"Align", "Middle",
"id", "fileupload",
"Quality", "High",
"bgcolor", "#869ca7",
"Name", "FileUpload",
"allowScriptAccess", "Samedomain",
"Type", "Application/x-shockwave-flash",
"Pluginspage", "Http://www.adobe.com/go/getflashplayer"
);
else if (hasrequestedversion) {
If we ' ve detected an acceptable version
Embed the Flash content SWF when all tests are passed
Ac_fl_runcontent (
"src", "fileupload",
"width", "100%",
"Height", "100%",
"Align", "Middle",
"id", "fileupload",
"Quality", "High",
"bgcolor", "#869ca7",
"Name", "FileUpload",
"allowScriptAccess", "Samedomain",
"Type", "Application/x-shockwave-flash",
"Pluginspage", "Http://www.adobe.com/go/getflashplayer"
);
else {//Flash is too old or we can ' t detect the Plugin
var alternatecontent = ' Alternate HTML content should is placed here. '
+ ' This content requires the Adobe Flash Player. '
+ ' <a href=http://www.adobe.com/go/getflash/>get flash</a> ';
document.write (AlternateContent); Insert Non-flash Content
}
-->
</script>
<noscript>
<object classid= "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
Id= "FileUpload" width= "100%" height= "100%"
codebase= "Http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" >
<param name= "movie" value= "fileupload.swf"/>
<param name= "Quality" value= "High"/>
<param name= "bgcolor" value= "#869ca7"/>
<param name= "allowscriptaccess" value= "Samedomain"/>
<embed src= "fileupload.swf" quality= "High" bgcolor= "#869ca7"
Width= "100%" height= "100%" name= "FileUpload" align= "Middle"
Play= "true"
Loop= "false"
Quality= "Hight"
Pluginspage= "Http://www.adobe.com/go/getflashplayer" >
</embed>
</object>
</noscript>
</body>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.