温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:明博静态新闻文章发布系统源码
当前文件:
MinbelNews/Admin/FileSubmit.aspx,打开代码结构图
MinbelNews/Admin/FileSubmit.aspx,打开代码结构图1<%@ Page Language="C#" validateRequest="false" AutoEventWireup="true" CodeFile="FileSubmit.aspx.cs" Inherits="Admin_FileSubmit" %> 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 width="100%" > 13
<tr> 14
<td style="width: 80px; text-align: center;"> 15
类别</td> 16
<td style="width: 505px" > 17
<asp:DropDownList ID="ddlTypeID" runat="server" DataSourceID="TypeSDS" DataTextField="Name" 18
DataValueField="TypeID"> 19
</asp:DropDownList> 20
21
级别 22
<asp:DropDownList ID="ddlLimit" runat="server"> 23
<asp:ListItem Selected="True">A</asp:ListItem> 24
<asp:ListItem>B</asp:ListItem> 25
<asp:ListItem>C</asp:ListItem> 26
<asp:ListItem>D</asp:ListItem> 27
<asp:ListItem>E</asp:ListItem> 28
</asp:DropDownList> 29
作者 30
<asp:TextBox ID="txtAuthor" runat="server" MaxLength="80"></asp:TextBox> 31
<asp:AccessDataSource ID="TypeSDS" runat="server" DataFile="~/App_Data/minbel.mdb" 32
SelectCommand="SELECT [TypeID], [Name] FROM [Type]"></asp:AccessDataSource> 33
</td> 34
</tr> 35
<tr> 36
<td style="width: 80px; text-align: center;"> 37
标题</td> 38
<td style="width: 505px" > 39
<asp:TextBox ID="txtTitle" runat="server" Width="95%"></asp:TextBox></td> 40
</tr> 41
<tr> 42
<td style="width: 80px; text-align: center;"> 43
模板</td> 44
<td style="width: 505px" > 45
<asp:DropDownList ID="ddlExampleID" runat="server" DataSourceID="ExampleSDS" DataTextField="Name" 46
DataValueField="ID"> 47
</asp:DropDownList><asp:AccessDataSource ID="ExampleSDS" runat="server" DataFile="~/App_Data/minbel.mdb" 48
SelectCommand="SELECT [ID], [Name] FROM [FileExample]"></asp:AccessDataSource> 49
</td> 50
</tr> 51
<tr> 52
<td style="width: 80px; height: 21px; text-align: center;"> 53
内容</td> 54
<td style="width: 505px" > 55
<asp:TextBox ID="txtProfile" runat="server" Rows="30" TextMode="MultiLine" Width="95%"></asp:TextBox></td> 56
</tr> 57
<tr> 58
<td style="width: 80px; text-align: center;"> 59
时间</td> 60
<td style="width: 505px" > 61
<asp:TextBox ID="txtInputTime" runat="server" Width="104px"></asp:TextBox> 62
关键字 63
<asp:TextBox ID="txtKeyWords" runat="server" MaxLength="30"></asp:TextBox> 64
编辑 <asp:TextBox ID="txtEditor" runat="server" MaxLength="20" Width="76px"></asp:TextBox></td> 65
</tr> 66
</table> 67
68
</div> 69
<p style="text-align: center" > 70
<asp:Button ID="btnAdd" runat="server" Text="增加" OnClick="btnAdd_Click" Width="137px" /></p> 71
72
</form> 73
</body> 74
</html> 75



