没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
DropDownList 和数据库绑定实例 收藏
1 数据库表格--数据库
图片分类
-----
typeid subtypeid typename
图片信息
picid subtypeid picname filename serverfile mimetype
编号 类别 图片名 文件名 文件路径 文件类型
说明; 两个表格使用 subtypeid 关联
2 程序前台
<HTML>
<HEAD>
<title>pic</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:label id="Label1" runat="server"Width="72px">subtypeid</asp:label>
<INPUT id="File1" type="file"name="File1" runat="server">
<asp:textbox id="TextBox1" runat="server"></asp:textbox>
<asp:label id="Label2" runat="server">照片名</asp:label>
<asp:button id="Button1" runat="server"Text="insert"></asp:button>
<asp:textbox id="TextBox2" runat="server"></asp:textbox>
<asp:Label id="Lbl_typename"runat="server" Width="256px"></asp:Label>
<asp:dropdownlist id="DropDownList1" runat="server" AutoPostBack="True"
></asp:dropdownlist>
<asp:Label id="Label3" runat="server">keyid</asp:Label>
</form>
</body>
</HTML>
3 程序后台:
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace house.map
{
/// <summary>
资源评论
老帽爬新坡
- 粉丝: 79
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功