protected void InitPage()
    {
        int             mer_id = int.Parse(Request.QueryString["mer_id"]);
        MerInfoMaintDAL func   = new MerInfoMaintDAL();
        McBasicInfo     mc     = func.GetMerchantInfoByID(mer_id);

        MerInfoMod_Name.Text         = mc.MerName;
        MerInfoMod_Introduction.Text = mc.MerInfo;
        MerInfoMod_Pic.Src           = mc.MerPic;
        MerInfoMod_Address.Text      = mc.MerAddr;
        MerInfoMod_Telephone.Text    = mc.MerPhone;
        MerInfoMod_Website.Text      = mc.MerWebsite;
        MerInfoMod_Email.Text        = mc.RegEmail;
        MerInfoMod_Relat.Text        = mc.RegName;



        string[] city_Pro = func.GetCityAndProvin(mc.CityID);
        MerInfoMod_Province.DataSource     = func.GetAllProvince();
        MerInfoMod_Province.DataValueField = "pro_id";
        MerInfoMod_Province.DataTextField  = "pro_name";
        MerInfoMod_Province.DataBind();
        MerInfoMod_Province.Text = city_Pro[1];

        MerInfoMod_City.DataSource     = func.GetAllCityByProvin(int.Parse(MerInfoMod_Province.SelectedValue));
        MerInfoMod_City.DataValueField = "city_id";
        MerInfoMod_City.DataTextField  = "city_name";
        MerInfoMod_City.DataBind();
        MerInfoMod_City.Text = city_Pro[0];
    }
    protected void InitPage()
    {
        MerInfoMaintDAL func   = new MerInfoMaintDAL();
        int             mer_id = int.Parse(Session["user_ID"].ToString());
        McBasicInfo     mc     = func.GetMerchantInfoByID(mer_id);

        MerBas_Name.Text      = mc.MerName;
        MerBas_Intro.Text     = mc.MerInfo;
        MerBas_Pic.ImageUrl   = Request.ApplicationPath + "/" + mc.MerPic;
        MerBas_Address.Text   = mc.MerAddr;
        MerBas_Phone.Text     = mc.MerPhone;
        MerBas_Web.Text       = mc.MerWebsite;
        MerBas_Email.Text     = mc.RegEmail;
        MerBas_Relat.Text     = mc.RegName;
        MerBas_StarLevel.Text = "";
        for (int i = 0; i < int.Parse(mc.MerStarLever.ToString()); i++)
        {
            MerBas_StarLevel.Text += " ★ ";
        }
        string[] city_Pro = func.GetCityAndProvin(mc.CityID);
        MerBas_Province.Text = city_Pro[1];
        MerBas_City.Text     = city_Pro[0];
        string state = "";

        switch (mc.MerState)
        {
        case 0:
            state = "未审核";
            break;

        case 1:
            state = "已通过";
            break;

        case 2:
            state = "未通过";
            break;
        }
        MerBas_State.Text = state;


        int     count = 0;
        DataSet ds    = func.GetAllProductByMerID(mer_id, AspNetPager1.PageSize, AspNetPager1.CurrentPageIndex, out count);

        AspNetPager1.RecordCount  = count;
        MerProductList.DataSource = ds;
        MerProductList.DataBind();
    }