Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //读取参数
                listTitle    = Request["listTitle"] == null ? "" : Request["listTitle"].ToString();
                tableName    = Request["tableName"] == null ? "" : Request["tableName"].ToString();
                strCondition = Request.QueryString["querryString"] == null ? "" : Request.QueryString["querryString"].ToString();

                hidexportfield.Value = Request.Params["exportfield"] == null ? "" : Request.Params["exportfield"];
                hidexporttitle.Value = Request.Params["exporttitle"] == null ? "" : Request.Params["exporttitle"];

                if (strCondition == "" || strCondition == null)
                {
                    strCondition = "1=1";
                }
                else
                {
                    tb_strCondition.Text = strCondition;
                }


                tb_listTitle.Text = listTitle;
                //读取记录数
                if (tableName != "")
                {
                    tb_tableName.Text = tableName;
                    dataCount         = Agedb.selectRecordCountByCondition(tableName, strCondition);
                    tb_Count.Text     = dataCount.ToString();
                }
            }
        }