private void SFUPC()//该方法用于保存当前页面上传文件控件集到缓存中
    {
        ArrayList AL = new ArrayList();//创建动态增加数组
        foreach (Control C in F.Controls)
        {
            if (C.GetType().ToString() == "System.Web.UI.HtmlControls.HtmlTableRow")
            {
                HtmlTableCell HTC = (HtmlTableCell)C.Controls[0];
                foreach (Control FUC in HTC.Controls)
                {
                    if (FUC.GetType().ToString() == "System.Web.UI.WebControls.FileUpload")
                    {
                        FileUpload FU = (FileUpload)FUC;
                        AL.Add(FU);
                    }
                }
            }
        }
        Session.Add("FilesControls", AL);
    }
    private void InsertC()//该方法用于添加一个上传文件的控件
    {
        ArrayList AL = new ArrayList();
       
        this.F.Rows.Clear();
        GetInfo();
        HtmlTableRow HTR = new HtmlTableRow();
        HtmlTableCell HTC = new HtmlTableCell();
        HTC.Controls.Add(new FileUpload());
        HTR.Controls.Add(HTC);
        F.Rows.Add(HTR);
        SFUPC();
    }
    private void GetInfo()//该方法用于读取缓存中存储的上传文件控件集
    {
        ArrayList AL = new ArrayList();
        if (Session["FilesControls"] != null)
        {
            AL = (System.Collections.ArrayList)Session["FilesControls"];
            for (int i = 0; i < AL.Count; i++)
            {
                HtmlTableRow HTR = new HtmlTableRow();
                HtmlTableCell HTC = new HtmlTableCell();
                HTC.Controls.Add((System.Web.UI.WebControls.FileUpload)AL[i]);
                HTR.Controls.Add(HTC);
                F.Rows.Add(HTR);
            }
        }
    }提示出错:
错误   当前上下文中不存在名称“F” D:\Web\3.aspx.cs