Exemple #1
0
        /// <summary>
        /// 获取便民服务信息
        /// </summary>
        public void LoadPeopleService()
        {
            DataTable     dtService  = WebInfoLogic.GetPeopleService(7);
            StringBuilder strService = new StringBuilder(200);

            if (dtService.Rows.Count > 0)
            {
                strService.Append("<ul>");
                for (int i = 0; i < dtService.Rows.Count; i++)
                {
                    strService.Append("<li><a style=\"display: block;overflow: hidden;white-space: pre-wrap;text-overflow: clip;width:200px;height:22px;\" href=\"InfoDetail.aspx?InfoID=" + ConvertHelper.ConvertLong(dtService.Rows[i]["InfoID"].ToString()));
                    strService.Append("&InfoCategoryID=" + dtService.Rows[i]["InfoCategoryID"].ToString());
                    strService.Append("\" target=\"_blank\" title=\"标    题:" + dtService.Rows[i]["Title"].ToString() + "&#10;发布日期:");
                    strService.Append(ConvertHelper.ConvertDateTime(dtService.Rows[i]["PubDate"].ToString()).ToShortDateString() + "&#10;访问次数:");
                    strService.Append(dtService.Rows[i]["ClickRate"].ToString() + "\">" + dtService.Rows[i]["Title"].ToString() + "</a>");
                    strService.Append("&nbsp;&nbsp;");
                }
                strService.Append("</ul>");
                divService.InnerHtml = strService.ToString();
            }
        }