📄 classadd.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ClassAdd.aspx.cs" Inherits="NewsClassManage_ClassAdd" %>
<!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>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="width: 793px; height: 109px; background-color: aliceblue;">
<tr>
<td colspan="2" style="background-color: #507cd1; color: #ffffff;">
添加子类</td>
</tr>
<tr backcolor>
<td style="width: 2px; height: 14px; background-color: aliceblue" align="center">
<asp:Label ID="LblClassName" runat="server" Text="分类名称:" Width="68px"></asp:Label></td>
<td style="width: 17px; height: 14px; background-color: aliceblue">
<asp:TextBox ID="TxtClassName" runat="server" Width="177px"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 2px; height: 9px; background-color: white" align="center">
<asp:Label ID="LblClassItemName" runat="server" Text="选择栏目:"
Width="69px"></asp:Label></td>
<td style="width: 17px; height: 9px; background-color: white">
<asp:DropDownList ID="DdlClassItemName" runat="server" Width="181px" DataSourceID="SqlDataSource1" DataTextField="ITEMNAME" DataValueField="ITEMID">
</asp:DropDownList>
</td>
</tr>
<tr>
<td style="width: 2px; height: 14px; background-color: aliceblue" align="center">
<asp:Label ID="LblClassDesc" runat="server" Text="分类描述:" Width="68px"></asp:Label></td>
<td style="width: 17px; height: 14px; background-color: aliceblue">
<asp:TextBox ID="TxtClassDesc" runat="server" Width="406px"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 2px; height: 9px; background-color: white" align="center">
<asp:Label ID="LblClassOrder" runat="server" Text="分类顺序:" Width="68px"></asp:Label></td>
<td style="width: 17px; height: 9px; background-color: white">
<asp:TextBox ID="TxtClassOrder" runat="server" Width="173px"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 2px; height: 9px; background-color: aliceblue">
</td>
<td style="width: 17px; height: 9px; background-color: aliceblue">
<asp:Button
ID="BtnSaveClass" runat="server" Height="23px" Text="保存分类" Width="75px" OnClick="BtnSaveClass_Click" /></td>
</tr>
</table>
</div>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Data Source=soft-602;Initial Catalog=news_manage;Persist Security Info=True;User ID=sa;Password=sa"
ProviderName="System.Data.SqlClient" SelectCommand="SELECT [ITEMID], [ITEMNAME] FROM [t_Item]">
</asp:SqlDataSource>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -