📄 producekind.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProduceKind.aspx.cs" Inherits="ProduceMag_ProduceKind" %>
<!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="../style/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" BorderStyle="None"
BorderWidth="1px" CellPadding="3" DataKeyNames="ProducesKindId"
DataSourceID="SqlDataSource1" Height="143px" Width="654px" GridLines="Vertical">
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<Columns>
<asp:BoundField DataField="ProducesKindId" HeaderText="ProducesKindId" InsertVisible="False"
ReadOnly="True" SortExpression="ProducesKindId" />
<asp:BoundField DataField="ProducesKinds" HeaderText="ProducesKinds" SortExpression="ProducesKinds" />
<asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
</Columns>
<RowStyle BackColor="#EEEEEE" ForeColor="Black" Height="20" />
<SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
<PagerStyle ForeColor="Black" HorizontalAlign="Center" BackColor="#999999" />
<HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="#DCDCDC" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConflictDetection="CompareAllValues"
ConnectionString="<%$ ConnectionStrings:csmagConnectionString %>" DeleteCommand="DELETE FROM [ProducesKind] WHERE [ProducesKindId] = @original_ProducesKindId AND [ProducesKinds] = @original_ProducesKinds"
InsertCommand="INSERT INTO [ProducesKind] ([ProducesKinds]) VALUES (@ProducesKinds)"
OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT * FROM [ProducesKind]"
UpdateCommand="UPDATE [ProducesKind] SET [ProducesKinds] = @ProducesKinds WHERE [ProducesKindId] = @original_ProducesKindId AND [ProducesKinds] = @original_ProducesKinds">
<DeleteParameters>
<asp:Parameter Name="original_ProducesKindId" Type="Int32" />
<asp:Parameter Name="original_ProducesKinds" Type="String" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="ProducesKinds" Type="String" />
<asp:Parameter Name="original_ProducesKindId" Type="Int32" />
<asp:Parameter Name="original_ProducesKinds" Type="String" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="ProducesKinds" Type="String" />
</InsertParameters>
</asp:SqlDataSource>
<br />
<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False"
BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px"
CellPadding="3" CellSpacing="2" DataKeyNames="ProducesKindId" DataSourceID="SqlDataSource1"
DefaultMode="Insert" Height="50px" Width="125px">
<FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
<EditRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
<PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
<Fields>
<asp:BoundField DataField="ProducesKindId" HeaderText="ProducesKindId" InsertVisible="False"
ReadOnly="True" SortExpression="ProducesKindId" />
<asp:BoundField DataField="ProducesKinds" HeaderText="ProducesKinds" SortExpression="ProducesKinds" />
<asp:CommandField ShowInsertButton="True" />
</Fields>
<HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
</asp:DetailsView>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -