如何在DataBound事件之前/之前捕获错误
||
一旦数据绑定完成,就触发数据绑定事件。
我想捕获可能发生的任何错误,所以我不运行StoredProc \“ sp_UpdatePrintQueueToPrinted \”。
如何在DataBound事件之前/之前捕获错误?
protected void ListView1_DataBound(object sender, EventArgs e)
{
using (GPEntities gpe = new GPEntities())
{
gpe.sp_UpdatePrintQueueToPrinted();
}
}
没有找到相关结果
已邀请:
2 个回复
粟痢凰副
募磷