很简单的做法,这个是假设数据已经拿出来了,不用再去数据库折腾了

 另外,如果喜欢折腾数据库的朋友可以使用如下SQL语句得到指定位置的指定字数的内容

这个是指定位置的select a from b where len(a)>=100 and len(a)<=400 --查字段a的字符串长度在100到400之间的

select substring(a,100,400) from b --查询a字段从第100个字符起到400个字符止的字符串.

新闻内容页分页的简单做法<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
新闻内容页分页的简单做法 

新闻内容页分页的简单做法
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
新闻内容页分页的简单做法

新闻内容页分页的简单做法
<html xmlns="http://www.w3.org/1999/xhtml" >
新闻内容页分页的简单做法
<head runat="server">
新闻内容页分页的简单做法
    <title>无标题页</title>
新闻内容页分页的简单做法
</head>
新闻内容页分页的简单做法
<body>
新闻内容页分页的简单做法
    <form id="form1" runat="server">
新闻内容页分页的简单做法
    <div>
新闻内容页分页的简单做法
        <asp:Button ID="nbtn" runat="server" Enabled="False" Height="23px" OnClick="nbtn_Click"
新闻内容页分页的简单做法
            Style="z-index: 100; left: 301px; position: absolute; top: 241px" Text="下一页" />
新闻内容页分页的简单做法
        <asp:Button ID="pbtn" runat="server" Enabled="False" Height="23px" OnClick="pbtn_Click"
新闻内容页分页的简单做法
            Style="z-index: 101; left: 222px; position: absolute; top: 241px" Text="上一页" />
新闻内容页分页的简单做法
        <asp:Panel ID="Panel1" runat="server" Height="201px" Style="z-index: 103; left: 12px;
新闻内容页分页的简单做法
            position: absolute; top: 8px" Width="654px">
新闻内容页分页的简单做法
            <asp:Label ID="Label1" runat="server" Style="z-index: 100; left: 261px; position: absolute;
新闻内容页分页的简单做法
                top: 278px" Text="Label"></asp:Label>
新闻内容页分页的简单做法
        </asp:Panel>
新闻内容页分页的简单做法
    
新闻内容页分页的简单做法
    </div>
新闻内容页分页的简单做法
    </form>
新闻内容页分页的简单做法
</body>
新闻内容页分页的简单做法
</html>
新闻内容页分页的简单做法

新闻内容页分页的简单做法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;
新闻内容页分页的简单做法
新闻内容页分页的简单做法
public partial class Default2 : System.Web.UI.Page

相关文章: