private void DropDownList1_SelectedIndexChanged(object sender, System.EventArgs e)
{
DataSet ds=new DataSet();
BusinessLayer.Userbox Userbox=new BusinessLayer.Userbox();
ds=Userbox.GetUserBoxDetailByBoxStat(int.Parse(DropDownList1.SelectedValue));
UserboxGrid.DataSource=ds.Tables[0].DefaultView;
UserboxGrid.DataBind();
}
代码如上所表示
{
DataSet ds=new DataSet();
BusinessLayer.Userbox Userbox=new BusinessLayer.Userbox();
ds=Userbox.GetUserBoxDetailByBoxStat(int.Parse(DropDownList1.SelectedValue));
UserboxGrid.DataSource=ds.Tables[0].DefaultView;
UserboxGrid.DataBind();
}
代码如上所表示
解决方案 »
- 感谢热心帮助,再请教几个梅花雪树的问题
- 通过aspxgridview显示文件中excel文件的信息
- Jquery datatable主副表实现的问题
- |zyciis| 如何将一个用 new{xx=l.xx,xx=l.xx}出来的对像再转为泛行,谢谢
- 在 VS2005 中怎么取出我设置的DataKeys值!
- ftp上传问题
- [救命啊!!]未将对象引用设置到对象的实例!!!
- 初学者请教关于gridview新添加列的链接问题
- 大家看看这样的导航怎么实现的
- jmail4问题:上网要用代理服务器,用jmail组件发送邮件如何设置代理?
- 关于控件绑定的问题
- Enterprise Library 1.0 和 2.0 有什么区别?2.0版的可以在 .netSDK1.1下使用吗?
#region Web 窗体设计器生成的代码
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.DropDownList1.SelectedIndexChanged += new System.EventHandler(this.DropDownList1_SelectedIndexChanged);
this.Load += new System.EventHandler(this.Page_Load); }
#endregion
this.DropDownList1.SelectedIndexChanged += new System.EventHandler(this.DropDownList1_SelectedIndexChanged);