Admin/UploadFlv.aspx.cs

(完整代码) 1KB

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Text;
using System.IO;
using System.Xml;

public partial class UploadFlv : System.Web.UI.Page
{
    public string id;
    public string wid;
    protected void Page_Load(object sender, EventArgs e)
    {
        id =Request.QueryString["id"].ToString();
        wid = Request.QueryString["wid"].ToString();
        if (!Page.IsPostBack)
        {
            if (SQLClass .GetSingle ("select ispic from tb_work where wid="+wid).ToString ()=="0")
            {
                flashUpload.FileTypeDescription = "视频文件(*.flv)";
                flashUpload.FileTypes = "*.flv";
            }
            else
            {
                flashUpload.FileTypeDescription = "图片文件(*.jpg)";
                flashUpload.FileTypes = "*.jpg";
            }

            StringBuilder jscript = new StringBuilder();
            jscript.Append("function UploadComplete()    {\n");
            jscript.Append("win.succeedInfo('文件上传成功!',null,null,'恭喜你!',handler); \n");
            jscript.Append(" }\n");
            Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "FileCompleteUpload", jscript.ToString(), true);
            string UpUser = "FlvUpload";
            FormsIdentity cIdentity = User.Identity as FormsIdentity;
            string encryptString = UpUser;
            flashUpload.QueryParameters = string.Format("UploadPath={0}&wid={1}", encryptString,wid);
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。