获取flash

2019-04-15 17:11发布

用页面显示flash的信息,页面的控件是:
                    height="304">
                   
                   
                   
                   
               
如果在后台操作直接输出是:
 myPicture pic = new myPicture();
            pic.enterId = int.Parse(ViewState["mid"].ToString());
            pic.GetModel();
            //标题下面的自定义图片
            if (!string.IsNullOrEmpty(pic.myImgPath))   //自定义图片
            {
                string TmyImg = pic.myImgPath.ToString().Replace("//", "/");
                string hz = TmyImg.Substring(TmyImg.Length - 3, 3).ToLower();
                string result = "";
                int height = 304;
                int width = 1004;
                if (hz.Equals("swf"))
                {
                    result = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0/" width=/"" + width + "/" height=/"" + height + "/">";
                    result = result + "";
                    result = result + "";
                    result = result + "http://www.macromedia.com/go/getflashplayer/"' type=/"application/x-shockwave-flash/" width=/"" + width + "/" height=/"" + height + "/">
";
                    //result = result + "http://www.macromedia.com/go/getflashplayer/"' type=/"application/x-shockwave-flash/">";
                }
                else
                {
                    result = "";
                    //result = "";
                }
                myImgPath.InnerHtml = result;
            }
            else
            {    //中部程序修改
                string defauresult = "";// "";
                defauresult = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0/" width=/"1004/" height=/"304/">";
                defauresult = defauresult + "";
                defauresult = defauresult + "";
                defauresult = defauresult + "http://www.macromedia.com/go/getflashplayer/"' type=/"application/x-shockwave-flash/" width=/"1004/" height=/"304/">
";
                myImgPath.InnerHtml = defauresult;
            }