protected void Page_Load(object sender, EventArgs e)
    {
        if (Page.User.Identity.Name != null && Page.User.Identity.Name.Trim() != "")
        {
            this.txtName.Value = Page.User.Identity.Name.Trim();
            divLogin.Style.Add("display", "none");
        }
        else
        {
            divLogin.Style.Add("display", "block");
        }
        if (Request.QueryString["infoId"] != null && Request.QueryString["infoId"].ToString() != "")
        {
            infoId = Convert.ToInt32(Request.QueryString["infoId"]);

            long           i        = 1;
            long           j        = 1;
            long           k        = 1;
            Tz888.BLL.Conn dal      = new Tz888.BLL.Conn();
            string         strWhere = "infoId='" + infoId + "'";
            DataTable      dt       = dal.GetList("maininfoTab", "loginName", "loginName,infoTypeID", strWhere, "loginName", ref i, k, ref j);

            if (dt != null && dt.Rows.Count > 0)
            {
                loginname = dt.Rows[0][0].ToString();
                string infotype = dt.Rows[0][1].ToString().Trim();
                //switch (infotype)
                //{
                //    case "Capital":
                //        h1.InnerText = "给投资方留言";
                //        break;
                //    case "Project":
                //        h1.InnerText = "给项目方留言";
                //        break;
                //    case "Merchant":
                //        h1.InnerText = "给招商机构留言";
                //        break;
                //    default:
                //        break;
                //}
                Tz888.BLL.LeaveMsg lvBll = new Tz888.BLL.LeaveMsg();
                int    count             = lvBll.GetCount(infoId);
                string countModel        = "<a href=\"http://member.topfo.com/helper/InfoComment/CommentForeList.aspx?id={0}\" target=\"_blank\">共有留言<span class=\"orange01\">{1}</span>条</a>";
                if (count > 0)
                {
                    this.ltCount.Text = string.Format(countModel, infoId.ToString(), count.ToString());
                }
                else
                {
                    this.ltCount.Text = "";
                }
            }
        }
    }