DropDownList控件的使用(数据绑定)(.net学习笔记二)(2006-10-12 07:28:49)
分类:.net学习笔记
一、在页面初始化时候将集合绑定到DropDownList
public void Page_Load(Object src.EventArgs e)
{
ArrayList arrValue = new ArrayList();
arrValue.add("kk");
arrValue.add("dd");
arrValue.add("aa");
arrValue.add("cc");
//将数组绑定到DropDownList控件的DataSource属性
ddl.DataSource = arrValue;
ddl.DataBind();
}
//实现
选项有:<asp:DropDownList >阅读全文
类别:.net 查看评论

相关文章:

  • 2021-06-26
  • 2021-08-27
  • 2022-02-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2019-06-27
  • 2021-06-24
相关资源
相似解决方案