Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            mydb hkdb = new mydb();

            hkdb.VeriSess("9");

            if (!IsPostBack)
            {
                if (!string.IsNullOrEmpty(Request.QueryString["id"].ToString()))
                {
                    //qy_fjylurl.Text = Convert.ToString(SqlHelper.ExecuteScalar("SELECT qy_fjylurl FROM qy WHERE qy_id = '001'"));
                    //绑定数据
                    ListViewBind();

                    //附件
                    SqlDataReader datar = SqlHelper.ExecuteReader("SELECT GGFJ  FROM HK_QYGG WHERE GGID='" + Request.QueryString["id"].ToString() + "'");
                    if (datar.Read())
                    {
                        bd.GetAttFj(datar["ggfj"].ToString(), "p02", "portal/gg", fujian);
                    }
                    datar.Close();
                }
            }
        }