因为三层架构,在底层写了方法 Vnet_BusinessRule.BusVideo.DeleteVideos。。想传GRIDVIEW当前行的ID列值作为参数,删除该行。。结果怎么也不行。。
各位大侠行行好我是新人。。帮帮忙了。如果问题有不清楚,可以加我QQ54854222。。小弟这厢有理了
public partial class VideoList : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
Vnet_Common.Video video = new Vnet_junhe.Vnet_Common.Video();
video.ID = Convert.ToInt32(Request.QueryString["videoID"]);
while (Vnet_BusinessRule.BusVideo.DeleteVideos(video))
{
Response.Write("<script defer>window.alert('删除成功');</script>");
}
Response.Redirect("VideoList.aspx");
}
}
}
[此贴子已经被作者于2006-8-28 13:47:01编辑过]