数据绑定完成后,我将关闭数据绑定事件。 我想捕捉可能发生的任何错误,所以我不运行StoredProc“sp_UpdatePrintQueueToPrinted”。如何在DataBound事件之前/之前捕获错误
如何在DataBound事件之前捕获错误?
protected void ListView1_DataBound(object sender, EventArgs e)
{
using (GPEntities gpe = new GPEntities())
{
gpe.sp_UpdatePrintQueueToPrinted();
}
}
我明白了你的观点。是的,我想抓住DataBind()。 – 2011-06-15 17:09:14