这次的Demo是,一个根页面,点击链接创建子页面,子页面都是一个Template页面进行替换的
一个根页面
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="Static.List" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h2>体育新闻</h2>
<p><a href="News/Info_0.html">中国拳手</a></p>
<p><a href="News/Info_1.html">纳斯很少情绪激动</a></p>
</div>
</form>
</body>
</html>
新建一个类,做假数据用,代替数据库的表
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Static
{
public class News
{
public int Id {
get; set