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

📄 bianji.aspx

📁 随着计算机科学的发展
💻 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">您的位置&gt;&gt;<a href="index.aspx">首页</a> &gt;&gt;后台管理</span><br />
	
	<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
          <tr>
            <td width="11%" bgcolor="#CCCCCC" style="height: 36px">&nbsp;</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>
                &nbsp;</p>
                <p style="text-align: left">
                    &nbsp;</p>
                <p style="text-align: left">
                    &nbsp;</p>
                <p style="text-align: left">
                    &nbsp;</p>
                <p style="text-align: left">
                    &nbsp;</p>
                <p style="text-align: left">
                    &nbsp;</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>
                    &nbsp;</p>
            </td>
            <td width="11%" bgcolor="#CCCCCC" style="height: 36px">&nbsp;</td>
          </tr>
          <tr>
            <td bgcolor="#CCCCCC" style="height: 30px">&nbsp;</td>
            <td bgcolor="#CCCCCC" style="height: 30px">&nbsp;</td>
          </tr>
          <tr>
            <td bgcolor="#CCCCCC" style="height: 106px">&nbsp;</td>
            <td bgcolor="#CCCCCC" style="height: 106px">&nbsp;</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 + -