紧急求助!detailsview中的itemupdating事件
我把detailsview绑定到dataset,现在要更新,怎样在detailsview的itemupdating事件中获取detailsview控件中的绑定项目的值
protected void Page_Load(object sender, EventArgs e)
{
^^^^^^^^^^^^略
DetailsView1.DataSource = dsde;
DetailsView1.DataBind();
}
protected void DetailsView1_ModeChanging(object sender, DetailsViewModeEventArgs e)
{
DetailsView1.ChangeMode(e.NewMode);
}
protected void DetailsView1_ItemUpdating(object sender, DetailsViewUpdateEventArgs e)
{
//?这里写啥????????????????????????????????????
}
------解决方案--------------------DetailsView1.FindControl( " ")
------解决方案--------------------Page_Load每次都重新绑定了,加上IsPostBack判断吧