Once the databind is completed, I fire off the databound event. I wanted to catch any error that might have occurred so I dont run the StoredProc "sp_UpdatePrintQueueToPrinted".
How do I Catch errors on/before DataBound event?
protected void ListView1_DataBound(object sender, EventArgs e)
{
using (GPEntities gpe = new GPEntities())
{
gpe.sp_UpdatePrintQueueToPrinted();
}
}