悬赏园豆:20
[已解决问题]
解决于 2008-05-09 08:48
<FONT face=Verdana>protected void DataList1_ItemDataBound(object sender, DataListItemEventArgs e)<BR> {<BR> if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)<BR> {<BR> DataList dl = (DataList)e.Item.FindControl("DataList2");<BR> DataRowView drv = (DataRowView)e.Item.DataItem;<BR> string id = drv["scid"].ToString();<BR> DataSet ds = db.dbo("select a.id,a.sadd,a.jointime,a.pasttime,a.sname,a.stype,b.aname from service a,accendant b where scid='" + id + "' and a.sid=b.aid ", "dong");<BR> dl.DataSource = ds;<BR> dl.DataBind();<BR> }<BR> }<BR><BR>问题是我怎么写里面的DataList2的编辑,删除事件!诚心向大家请教。</FONT>