.net新闻内容分页
2008-07-08 13:57
225 查看
项目中遇到带图片,可能还有视频,flash的新闻内容显示,内容过长需要分页,网上搜了搜。这里我使用RadEditor编辑器手动控制分页符。
<radE:RadEditor ID="RadEditor1" runat="server">
</radE:RadEditor>
<script type="text/javascript" language="javascript" src="http://www.cnblogs.com/librarys/radEditorCustom.js"></script>
在ToolFile.Xml中添加
<tools name="AllowPage">
<tool name="Custom"></tool>
</tools>
[radEditorCustom.js]
// JScript 文件
RadEditorCommandList["Custom"] = function(commandName, editor, oTool)
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using System.Text.RegularExpressions;
public class AllowPager:System.Web.UI.Page
调用:
public void init_Data()
string nID = Get_nID();
int nKey = Get_nKey();
GS.Comm.List cl = new GS.Comm.List(nKey,nID);
lbTitle.Text = cl.sTitle;
lbAuthor.Text = "编辑:"+(cl.sAuthor==""?"ArtJie":cl.sAuthor);
lbDateTime.Text = "时间:"+cl.dPubDate.ToString();
lbNum.Text = "点击数:" + cl.nNum.ToString();
string content=cl.sText;
lbContent.Text = AllowPager.NewsContentPager(content, "news_show.aspx?nKey=" + nKey + "&nID=" + nID, Get_Page);
}
<radE:RadEditor ID="RadEditor1" runat="server">
</radE:RadEditor>
<script type="text/javascript" language="javascript" src="http://www.cnblogs.com/librarys/radEditorCustom.js"></script>
在ToolFile.Xml中添加
<tools name="AllowPage">
<tool name="Custom"></tool>
</tools>
[radEditorCustom.js]
// JScript 文件
RadEditorCommandList["Custom"] = function(commandName, editor, oTool)
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using System.Text.RegularExpressions;
public class AllowPager:System.Web.UI.Page
调用:
public void init_Data()
string nID = Get_nID();
int nKey = Get_nKey();
GS.Comm.List cl = new GS.Comm.List(nKey,nID);
lbTitle.Text = cl.sTitle;
lbAuthor.Text = "编辑:"+(cl.sAuthor==""?"ArtJie":cl.sAuthor);
lbDateTime.Text = "时间:"+cl.dPubDate.ToString();
lbNum.Text = "点击数:" + cl.nNum.ToString();
string content=cl.sText;
lbContent.Text = AllowPager.NewsContentPager(content, "news_show.aspx?nKey=" + nKey + "&nID=" + nID, Get_Page);
}
相关文章推荐
- .net 新闻内容分页
- 在asp.net中长内容自动分页的实现-.NET教程
- 新闻内容分页
- C#新闻内容过长,内容分页
- 新闻内容页分页的简单做法
- 一步步打造漂亮的新闻列表(无刷新分页、内容预览)(2)
- 一步步打造漂亮的新闻列表(无刷新分页、内容预览)第二步
- 一步步打造漂亮的新闻列表(无刷新分页、内容预览)第三章
- 【转】在asp.net中长内容自动分页的实现-.NET教程
- AspNetPager 新闻内容分页
- 一步步打造漂亮的新闻列表(无刷新分页、内容预览)(2)
- 一步步打造漂亮的新闻列表(无刷新分页、内容预览)第一步
- 在asp.net中长内容自动分页的实现-.NET教程
- jsp实现新闻内容或超长文章的分页
- 一步步打造漂亮的新闻列表(无刷新分页、内容预览)(3)
- 一步步打造漂亮的新闻列表(无刷新分页、内容预览)第一步
- 新闻内容实现分页
- 新闻内容页分页的简单做法
- 在asp.net中长内容自动分页的实现-.NET教程2
- 一步步打造漂亮的新闻列表(无刷新分页、内容预览)(3)