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

📄 shownew.aspx

📁 包含了几个由sql server2005开发的典型程序
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="shownew.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" />
        <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;</span></td>
                        </tr>
                        <tr>
                            <td style="width: 540px; height: 121px; background-color: #ffffff" valign="top">
                                <asp:DataList ID="DataList1" runat="server" Height="121px" RepeatColumns="1" RepeatDirection="Horizontal"
                                    Width="524px">
                                    <ItemTemplate>
                                        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">
                                            <tr>
                                                <td style="width: 100%; height: 20%; font-size: 20pt; text-align: center;">
                                                 <br /><%# DataBinder.Eval(Container.DataItem, "新闻标题")%>
                                                    <br /><br />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 100%; height: 10%">
                                                    点击率:
                                                    <%# DataBinder.Eval(Container.DataItem, "阅读次数")%>&nbsp;
                                                    发表时间:<%# DataBinder.Eval(Container.DataItem, "添加时间")%>【<a href='javascript:window.print()'>打印此页</a>】&nbsp;【<a href='javascript:history.back()'>返回</a>】
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 100%; height: 70%; text-align: justify;">
                                                &nbsp;&nbsp;<%# DataBinder.Eval(Container.DataItem, "新闻内容")%><br />
                                                </td>
                                            </tr>
                                        </table>
                                    </ItemTemplate>
                                </asp:DataList></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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