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

📄 tianjia.aspx

📁 随着计算机科学的发展
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="tianjia.aspx.cs" Inherits="tianjia" %>


<!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 id="Head1" runat="server">
    <title>无标题页</title>
    <style type="text/css">
<!--
.STYLE1 {color: #000000}
.STYLE4 {font-size: 14px}
.STYLE5 {font-size: 12pt}
-->
    </style>
</head>
<body>
<form id="Form1" runat=server>
<table width="997" border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
      <!--DWLayoutTable-->
      <tr>
        <td width="995" height="93"><span class="STYLE1"></span></td>
  </tr>
  </table>
<table width="995" border="1" cellpadding="0" cellspacing="0" bordercolor="#999999">
  <!--DWLayoutTable-->
  <tr>
    <td valign="top" style="height: 253px" colspan="3">        <span class="STYLE4">您的位置&gt;&gt;<a href=index.aspx>首页</a> &gt;&gt;添加新闻&nbsp;</span><br />
        <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
          <tr>
            <td bgcolor="#CCCCCC" style="height: 36px; width: 107px;">&nbsp;</td>
            <td width="78%" rowspan="3" align="center" style="height: 36px">
                <table style="width: 100%; font-size: 10pt; font-family: 宋体;">
                    <tr><td style="text-align: center; width: 112px;">
                        新闻列表:</td><td style="text-align: left">
                        <asp:DataList ID="DataList1" runat="server" CellPadding="4" DataKeyField="newsid"
                             ForeColor="#333333">
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("newsbiaoti") %>' Width="464px" Font-Names="宋体" Font-Size="10pt" ForeColor="Blue"></asp:Label>
                            </ItemTemplate>
                            <AlternatingItemStyle BackColor="White" />
                            <ItemStyle BackColor="#EFF3FB" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        </asp:DataList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:loginConnectionString %>"
                            SelectCommand="SELECT * FROM [news]"></asp:SqlDataSource>
                    </td>
                    </tr>
                    <tr><td>
                        新闻编号:</td><td style="text-align: left">
                        <asp:TextBox ID="txtid" runat="server" Height="18px" Width="33px"></asp:TextBox>
                        <asp:CompareValidator ID="CompareValidator1" runat="server"
                            Display="Dynamic" ErrorMessage="请输入数字!" Operator="DataTypeCheck" Width="97px" ControlToValidate="txtid"></asp:CompareValidator>&nbsp;
                    </td></tr>
                    <tr>
                        <td style="width: 112px; height: 26px; text-align: center;">
                            新闻标题:</td>
                        <td style="width: 650px; text-align: left; height: 26px;">
                            <asp:TextBox ID="txtbiaoti" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic"
                                ErrorMessage="不能为空!" ControlToValidate="txtbiaoti"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td style="width: 112px; text-align: center;">
                            新闻内容:</td>
                        <td style="width: 650px">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 112px; height: 156px">
                        </td>
                        <td style="width: 650px; height: 156px; text-align: left">
                            <asp:TextBox ID="txtneirong" runat="server" Height="201px" TextMode="MultiLine" Width="627px"></asp:TextBox><br />
                        </td>
                    </tr>
                    <tr>
                    <td style="height: 21px; width: 112px;"></td>
                    <td style="width: 650px; height: 21px; text-align: right">
                        <asp:Button ID="btntijiao" runat="server" Text="提交" Width="111px" OnClick="btntijiao_Click" />
                        <asp:Button ID="btnquxiao" runat="server" Text="取消" Width="111px" />
                    </td>
                    </tr>
                </table>
                &nbsp;
            </td>
            <td width="11%" bgcolor="#CCCCCC" style="height: 36px">&nbsp;</td>
          </tr>
          <tr>
            <td bgcolor="#CCCCCC" style="height: 30px; width: 107px;">&nbsp;</td>
            <td bgcolor="#CCCCCC" style="height: 30px">&nbsp;</td>
          </tr>
          <tr>
            <td bgcolor="#CCCCCC" style="height: 106px; width: 107px;">&nbsp;</td>
            <td bgcolor="#CCCCCC" style="height: 106px">&nbsp;</td>
          </tr>
      </table></td>
  </tr>
      <tr>
        <td colspan="3" valign="top" style="height: 69px"><div align="center"><span class="STYLE5" style="font-family: 宋体">All Rights reserved ©<br />
            新闻发布系统 版权所有</span> </div></td>
      </tr>
      <tr><td style="height: 20px"></td><td style="width: 404px; height: 20px;"></td>
        <td style="height: 20px"></td>
      </tr>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

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