日期:2014-05-17  浏览次数:20426 次

asp.net 未加载影片 不支持 embed [坑爹啊]【已解决】
你就在.cs里面随便下个断点,调试的时候页面是显示flash的,但是浏览的时候不显示

我用的是SWFFileUpload.swf 上传到服务器正常显示,拜拜浪费我很多时间,鄙视,太坑爹

代码

C# code

<tr bgcolor="#FFFFFF" onmousemove="javascript:this.bgColor='#FCFDEE';" onmouseout="javascript:this.bgColor='#FFFFFF';">
    <td width="100" align="right">上传视频:</td><td colspan="2">
    <script type="text/javascript">
        document.write('<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\"');
        document.write('width=\"550px\" height=\"45px\" id=\"Object1\" align=\"middle\">')
        document.write('<param name=\"allowScriptAccess\" value=\"always\" />');
        document.write('<param name=\"movie\" value=\"SWFFileUpload.swf\" />');
        document.write('<param name=\"quality\" value=\"high\" />');
        document.write('<param name=\"wmode\" value=\"transparent\">');
        document.write('<param name=\"FlashVars\" value=\"UploadPage=FLVUpload.aspx&Args=ParentPath=&CompletedFunction=OnCompleted&FileExtension=*.*&filesize=204800\">');
        document.write('<embed src=\"SWFFileUpload.swf\" name=\"fileUpload2\" align=\"middle\"');
        document.write('allowscriptaccess=\"always\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />');
        document.write('</object>');
        function OnCompleted() {
            alert("上传成功!");
        }
                </script>
    </td></tr>



------解决方案--------------------
好吧,我来帮你顶一下