asp.net 长内容文章自动分页
前台代码:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="articleview.aspx.cs" Inherits="articleview" %>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%# strTitle %>-评选动态-校园十大人物评选活动-山东建筑大学法政学院</title>
<link href="css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div class="warper">
<div class="content">
<div class="left_cont">
<div class="daohang">当前位置:<a href="default.aspx">首页</a> >> <a href="dongtai.aspx"> 评选动态</a> >> 正文</div>
<div class="pxdt third">
<div class="cont_title"> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></div>
<div class="a_page f_color">文章发表时间:<span><asp:Label ID="Label2" runat="server" Text="Label"></asp:Label></span> 来源:<span><asp:Label ID="Label3" runat="server" Text="Label"></asp:Label></span></div>
<div class="body_cont">
&nbs
相关文档:
using System;
using System.Web;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
namespace op_db
{
/**//// <summary>
/// 专门用来处理与数据库的操作
/// </summary>
public class&n ......
最近搞用户验证时,出了个问题,查阅资料解决后,整理了一下。第一篇blog
主要就是父类和子类间OnLoad,OnInit,Load 事件,Init事件的执行先后问题。
一个页面(子类)的Oninit方法最先启动执行,而后递归执行父类中Oninit方法,父类Oninit方法中添加Init事件,执行Page_Init方法,后再返回父类Oninit方法执行完毕,最后返 ......
Introduction
Before explaining cache management in ASP.NET, let me clarify that different people use different terms for explaining the same concept i.e. managing data. Some people refer to it as state management and some others refer to it as cache management. I love to use the term cache manageme ......
我想使用一个TreeView控件来显示文件
夹的结构,可以在Asp.net中没有默认的Treeview控件,于是,我查找了相关资料,知道微软发布了它的控件IEWebControls.我下载
了该控件,并安装到了自己的机器上。
1、下载:
下载的网址
http://msdn.microsoft.com/downloads/s
amp
les/internet/
[url=/code/as ......