⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shownews.aspx

📁 包含了几个由sql server2005开发的典型程序
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="shownews.aspx.cs" Inherits="shownews" %>

<%@ Register Src="head.ascx" TagName="head" TagPrefix="uc1" %>

<!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>
    <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body style="background-color: #edeeef; text-align: center">
    <form id="form1" runat="server">
    <div>
        <uc1:head ID="Head1" runat="server" OnLoad="Head1_Load" />
        <table border="0" cellpadding="0" cellspacing="0" style="width: 740px; height: 239px">
            <tr>
                <td style="width: 740px; height: 447px; background-color: #ffffff" valign="middle" align="center">
                    <table border="0" cellpadding="0" cellspacing="1" style="border-right: 1px solid;
                        border-top: 1px solid; border-left: 1px solid; width: 540px; border-bottom: 1px solid;
                        height: 150px; background-color: #3381da">
                        <tr>
                            <td align="left" style="font-size: 9pt; background-image: url(image/t_bg01.gif);
                                width: 540px; height: 19px; background-color: #ffffff">
                                &nbsp;<span style="color: #ffffff">::新闻</span><span style="color: #ffffff"> &nbsp; &nbsp;&nbsp;
                                    &nbsp; &nbsp; &nbsp;&nbsp;</span></td>
                        </tr>
                        <tr>
                            <td style="width: 540px; height: 121px; background-color: #ffffff" valign="middle" align="center">
                                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" GridLines="None"
                                    Height="121px" PageSize="6" ShowHeader="False" Width="452px">
                                    <Columns>
                                        <asp:HyperLinkField DataNavigateUrlFields="流水号" DataNavigateUrlFormatString="shownew.aspx?id={0}"
                                            DataTextField="新闻标题" DataTextFormatString="&#183;{0}" HeaderText="新闻标题">
                                            <ItemStyle Font-Overline="False" HorizontalAlign="Left" />
                                        </asp:HyperLinkField>
                                        <asp:BoundField DataField="添加时间" HeaderText="添加时间" />
                                        <asp:BoundField DataField="新闻类别" HeaderText="新闻类别" />
                                        <asp:BoundField DataField="阅读次数" HeaderText="阅读次数" />
                                    </Columns>
                                </asp:GridView>
                                </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -