?? tianjia.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">您的位置>><a href=index.aspx>首頁</a> >>添加新聞 </span><br />
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
<tr>
<td bgcolor="#CCCCCC" style="height: 36px; width: 107px;"> </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="請輸入數(shù)字!" Operator="DataTypeCheck" Width="97px" ControlToValidate="txtid"></asp:CompareValidator>
</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;">
新聞內(nèi)容:</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>
</td>
<td width="11%" bgcolor="#CCCCCC" style="height: 36px"> </td>
</tr>
<tr>
<td bgcolor="#CCCCCC" style="height: 30px; width: 107px;"> </td>
<td bgcolor="#CCCCCC" style="height: 30px"> </td>
</tr>
<tr>
<td bgcolor="#CCCCCC" style="height: 106px; width: 107px;"> </td>
<td bgcolor="#CCCCCC" style="height: 106px"> </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 />
新聞發(fā)布系統(tǒng) 版權(quán)所有</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 + -