温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:小范企业管理源码
当前文件路径:XiaoFanWeb/admin/product_add.aspx

1<%@ Page Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="product_add.aspx.cs" Inherits="admin_product_add" Title="Untitled Page" %> 2
3
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" 4
Namespace="System.Web.UI" TagPrefix="asp" %> 5
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> 6
</asp:Content> 7
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 8
<table width="600"> 9
<tr> 10
<td style="height: 17px" width="100"> 11
</td> 12
<td align="left" style="height: 17px"> 13
<asp:Label ID="OKmessage" runat="server" ForeColor="Red" Text="Label" Visible="False"></asp:Label></td> 14
<td style="height: 17px"> 15
</td> 16
</tr> 17
<tr> 18
<td style="height: 17px" width="100"> 19
产品分类:</td> 20
<td align="left" style="height: 17px"> 21
<asp:UpdatePanel id="UpdatePanel1" runat="server"> 22
<contenttemplate> 23
<asp:DropDownList id="DDL_type1" runat="server" DataTextField="Name" DataSourceID="AccessDataSource1" DataValueField="Id" AutoPostBack="True"></asp:DropDownList> <asp:AccessDataSource id="AccessDataSource1" runat="server" DataFile="~/App_Data/dbs.mdb" SelectCommand="SELECT [Id], [Name] FROM [FZ_Product_Type] WHERE ([pid] = ?)"><SelectParameters> 24
<asp:Parameter Type="Int32" DefaultValue="0" Name="pid"></asp:Parameter> 25
</SelectParameters> 26
</asp:AccessDataSource> <asp:DropDownList id="DDL_type2" runat="server" DataTextField="Name" DataSourceID="AccessDataSource2" DataValueField="Id"></asp:DropDownList> <asp:AccessDataSource id="AccessDataSource2" runat="server" DataFile="~/App_Data/dbs.mdb" SelectCommand="SELECT [Id], [Name] FROM [FZ_Product_Type] WHERE ([pid] = ?) ORDER BY [Ord]"><SelectParameters> 27
<asp:ControlParameter PropertyName="SelectedValue" Type="Int32" Name="pid" ControlID="DDL_type1"></asp:ControlParameter> 28
</SelectParameters> 29
</asp:AccessDataSource> 30
</contenttemplate> 31
</asp:UpdatePanel></td> 32
<td style="height: 17px"> 33
</td> 34
</tr> 35
<tr> 36
<td style="height: 17px" width="100"> 37
产品名称:</td> 38
<td align="left" style="height: 17px"> 39
<asp:TextBox ID="TB_name" runat="server"></asp:TextBox></td> 40
<td style="height: 17px"> 41
</td> 42
</tr> 43
<tr> 44
<td style="height: 17px" width="100"> 45
产品图片:</td> 46
<td align="left" style="height: 17px"> 47
<asp:TextBox ID="TB_img" runat="server"></asp:TextBox> 48
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/HelperScripts/ftb.imagegallery.aspx" 49
Target="_blank">选择图片</asp:HyperLink></td> 50
<td style="height: 17px"> 51
</td> 52
</tr> 53
<tr> 54
<td style="height: 17px" width="100"> 55
详细信息:</td> 56
<td align="left" style="height: 17px"> 57
<asp:TextBox ID="TB_info" runat="server" Height="121px" TextMode="MultiLine" Width="342px"></asp:TextBox></td> 58
<td style="height: 17px"> 59
</td> 60
</tr> 61
<tr> 62
<td style="height: 17px" width="100"> 63
</td> 64
<td align="left" style="height: 17px"> 65
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="添加产品" /></td> 66
<td style="height: 17px"> 67
</td> 68
</tr> 69
<tr> 70
<td style="height: 17px" width="100"> 71
</td> 72
<td align="left" style="height: 17px"> 73
</td> 74
<td style="height: 17px"> 75
</td> 76
</tr> 77
<tr> 78
<td style="height: 17px" width="100"> 79
</td> 80
<td align="left" style="height: 17px"> 81
</td> 82
<td style="height: 17px"> 83
</td> 84
</tr> 85
</table> 86
</asp:Content> 87
88



Namespace