?? bianji.aspx
字號:
?<%@ Page Language="C#" AutoEventWireup="true" CodeFile="bianji.aspx.cs" Inherits="bianji" %>
<!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}
#Layer1 {
position:absolute;
left:16px;
top:135px;
width:160px;
height:243px;
z-index:1;
}
.STYLE4 {font-size: 14px}
.STYLE5 {
font-size: x-large;
font-weight: bold;
}
.STYLE6 {font-size: xx-large}
.STYLE7 {font-size: xx-large; font-family: "黑體"; }
-->
</style>
</head>
<body>
<form id="Form1" runat=server>
<table width="997" border="1" cellpadding="0" cellspacing="0">
<!--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: 264px" 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 width="11%" bgcolor="#CCCCCC" style="height: 36px"> </td>
<td width="78%" rowspan="3" align="center" style="height: 36px"><p style="text-align: left">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None"
BorderWidth="1px" CellPadding="5" DataKeyNames="newsid" DataSourceID="SqlDataSource1"
ForeColor="Black" GridLines="Vertical" Height="148px" HorizontalAlign="Left"
PageSize="5" Width="800px">
<FooterStyle BackColor="#CCCC99" />
<Columns>
<asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
<asp:BoundField DataField="newstime" HeaderText="newstime" SortExpression="newstime" />
<asp:BoundField DataField="newsbiaoti" HeaderText="newsbiaoti" SortExpression="newsbiaoti" />
<asp:BoundField DataField="newscontent" HeaderText="newscontent" SortExpression="newscontent" />
</Columns>
<RowStyle BackColor="#F7F7DE" />
<SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
<HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
</p>
<p style="text-align: left">
</p>
<p style="text-align: left">
</p>
<p style="text-align: left">
</p>
<p style="text-align: left">
</p>
<p style="text-align: left">
</p>
<p style="text-align: left">
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:loginConnectionString %>"
DeleteCommand="DELETE FROM [news] WHERE [newsid] = @newsid" InsertCommand="INSERT INTO [news] ([newsid], [newsbiaoti], [newscontent], [imgurl], [newstime]) VALUES (@newsid, @newsbiaoti, @newscontent, @imgurl, @newstime)"
SelectCommand="SELECT * FROM [news] WHERE ([newsid] = @newsid)" UpdateCommand="UPDATE [news] SET [newsbiaoti] = @newsbiaoti, [newscontent] = @newscontent, [imgurl] = @imgurl, [newstime] = @newstime WHERE [newsid] = @newsid">
<DeleteParameters>
<asp:Parameter Name="newsid" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="newsbiaoti" Type="String" />
<asp:Parameter Name="newscontent" Type="String" />
<asp:Parameter Name="imgurl" Type="String" />
<asp:Parameter Name="newstime" Type="DateTime" />
<asp:Parameter Name="newsid" Type="Int32" />
</UpdateParameters>
<SelectParameters>
<asp:QueryStringParameter Name="newsid" QueryStringField="newsid" Type="Int32" />
</SelectParameters>
<InsertParameters>
<asp:Parameter Name="newsid" Type="Int32" />
<asp:Parameter Name="newsbiaoti" Type="String" />
<asp:Parameter Name="newscontent" Type="String" />
<asp:Parameter Name="imgurl" Type="String" />
<asp:Parameter Name="newstime" Type="DateTime" />
</InsertParameters>
</asp:SqlDataSource>
</p>
</td>
<td width="11%" bgcolor="#CCCCCC" style="height: 36px"> </td>
</tr>
<tr>
<td bgcolor="#CCCCCC" style="height: 30px"> </td>
<td bgcolor="#CCCCCC" style="height: 30px"> </td>
</tr>
<tr>
<td bgcolor="#CCCCCC" style="height: 106px"> </td>
<td bgcolor="#CCCCCC" style="height: 106px"> </td>
</tr>
</table>
</td></tr>
<tr>
<td colspan="3" valign="top" style="height: 59px">
</td>
</tr>
<tr><td style="height: 35px"></td><td style="width: 404px; height: 35px;"></td>
<td style="height: 35px"></td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -