没有合适的资源?快使用搜索试试~ 我知道了~
c#dropdown用户控件下载
需积分: 3 4 下载量 43 浏览量
2011-06-12
15:35:54
上传
评论
收藏 1KB TXT 举报
温馨提示
试读
2页
c#相关的注意事项,DropDownList1用户控件 DropDownList1.DataSource = new ClientDAL().DBHelperDataTable("select ID,name from T_Module"); DropDownList1.DataTextField = "name"; DropDownList1.DataValueField = "ID"; DropDownList1.DataBind();
资源推荐
资源详情
资源评论
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using dal;
public partial class Test : System.Web.UI.UserControl
{
private int moduleid;
public int Moduleid
{
get { return Convert.ToInt32(DropDownList1.SelectedValue); }
set
{
moduleid = value;
//bind();
}
}
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
if (moduleid == 0)
{
bind();
}
}
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using dal;
public partial class Test : System.Web.UI.UserControl
{
private int moduleid;
public int Moduleid
{
get { return Convert.ToInt32(DropDownList1.SelectedValue); }
set
{
moduleid = value;
//bind();
}
}
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
if (moduleid == 0)
{
bind();
}
}
资源评论
wushouqiang
- 粉丝: 1
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功