首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

用fckeditor分页符出错?该如何处理

2012-03-20 
用fckeditor分页符出错?用的fckeditor上的分页符按钮,分页代码是C# codeprotected void PageNews(string n

用fckeditor分页符出错?
用的fckeditor上的分页符按钮,分页代码是

C# code
protected void PageNews(string news)        {            string[] a = new string[] { "<div style='page-break-after: always'><span style='display: none'>page break</span></div>" };            string[] temp = news.Split(a, StringSplitOptions.RemoveEmptyEntries);            //string[] temp = news.Split('^');            int currentPage = 1;            if (temp.Length <= 1)            {                this.lblContent.Text = news.ToString();            }            else            {                for (int i = 0; i < temp.Length; i++)                {                    if (i == currentPage)                    {                        this.lblPageNumber.Text = "第" + i + "页 | ";                    }                    else                    {                        lblPageNumber.Text += "[<a href=LookArticle.aspx?id=" + HttpContext.Current.Request["id"].ToString() +                        "&page=" + i + ">" + (i + 1) + "</a>]&nbsp;&nbsp;";                        currentPage = i;                    }                    lblContent.Text = temp[currentPage].ToString();                }                //pageNum.Text += pageInfo;            }        }

那个数组a就是fck里的分页符代码,但是现在使用这个后无效,还是显示的全部文章
做过fckeditor分页的能不能给点代码参考下!

[解决办法]
帮顶,没用过
[解决办法]
http://blog.csdn.net/mayongzhan/archive/2007/11/21/1896932.aspx

热点排行