温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:Handson简单新闻系统后台源码
当前文件:
HandsonNews/NewsClassManage/ClassAdd.aspx[3K,2009-6-12 11:43:42],打开代码结构图
HandsonNews/NewsClassManage/ClassAdd.aspx[3K,2009-6-12 11:43:42],打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ClassAdd.aspx.cs" Inherits="NewsClassManage_ClassAdd" %> 2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4
5
<html xmlns="http://www.w3.org/1999/xhtml" > 6
<head runat="server"> 7
<title>无标题页</title> 8
</head> 9
<body> 10
<form id="form1" runat="server"> 11
<div> 12
<table style="width: 793px; height: 109px; background-color: aliceblue;"> 13
<tr> 14
<td colspan="2" style="background-color: #507cd1; color: #ffffff;"> 15
添加子类</td> 16
</tr> 17
<tr backcolor> 18
<td style="width: 2px; height: 14px; background-color: aliceblue" align="center"> 19
<asp:Label ID="LblClassName" runat="server" Text="分类名称:" Width="68px"></asp:Label></td> 20
<td style="width: 17px; height: 14px; background-color: aliceblue"> 21
<asp:TextBox ID="TxtClassName" runat="server" Width="177px"></asp:TextBox></td> 22
</tr> 23
<tr> 24
<td style="width: 2px; height: 9px; background-color: white" align="center"> 25
<asp:Label ID="LblClassItemName" runat="server" Text="选择栏目:" 26
Width="69px"></asp:Label></td> 27
<td style="width: 17px; height: 9px; background-color: white"> 28
<asp:DropDownList ID="DdlClassItemName" runat="server" Width="181px" DataSourceID="SqlDataSource1" DataTextField="ITEMNAME" DataValueField="ITEMID"> 29
</asp:DropDownList> 30
</td> 31
</tr> 32
<tr> 33
<td style="width: 2px; height: 14px; background-color: aliceblue" align="center"> 34
<asp:Label ID="LblClassDesc" runat="server" Text="分类描述:" Width="68px"></asp:Label></td> 35
<td style="width: 17px; height: 14px; background-color: aliceblue"> 36
<asp:TextBox ID="TxtClassDesc" runat="server" Width="406px"></asp:TextBox></td> 37
</tr> 38
<tr> 39
<td style="width: 2px; height: 9px; background-color: white" align="center"> 40
<asp:Label ID="LblClassOrder" runat="server" Text="分类顺序:" Width="68px"></asp:Label></td> 41
<td style="width: 17px; height: 9px; background-color: white"> 42
<asp:TextBox ID="TxtClassOrder" runat="server" Width="173px"></asp:TextBox></td> 43
</tr> 44
<tr> 45
<td style="width: 2px; height: 9px; background-color: aliceblue"> 46
</td> 47
<td style="width: 17px; height: 9px; background-color: aliceblue"> 48
<asp:Button 49
ID="BtnSaveClass" runat="server" Height="23px" Text="保存分类" Width="75px" OnClick="BtnSaveClass_Click" /></td> 50
</tr> 51
</table> 52
</div> 53
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Data Source=soft-602;Initial Catalog=news_manage;Persist Security Info=True;User ID=sa;Password=sa" 54
ProviderName="System.Data.SqlClient" SelectCommand="SELECT [ITEMID], [ITEMNAME] FROM [t_Item]"> 55
</asp:SqlDataSource> 56
</form> 57
</body> 58
</html> 59




