问题描述
protectedvoidlsv_pdc_ItemUpdating(objectsender,ListViewUpdateEventArgse){DropDownList_ddl=(DropDownList)lsv_pdc.Items[e.ItemIndex].FindControl("ddl_class2");string_newvalues=_ddl.SelectedValue;e.NewValues["pdc_classid"]=_newvalues;lsv_pdc.DataBind();}为什么我这段代码写进去,点更新为什么不能更新数据库?求前辈指教~~
时间: 2024-10-02 04:57:34