private void Page_Load(object sender, System.EventArgs e)
 {
     try
     {
         if(!IsPostBack)
         {
             order = new clsWorkOrders();
             order.iOrgId = _functions.GetUserOrgId(HttpContext.Current.User.Identity.Name, false);
             dgUnsignedWorkOrders.DataSource = new DataView(order.GetWOUnsignedList());
             dgUnsignedWorkOrders.DataBind();
         }
     }
     catch(Exception ex)
     {
         _functions.Log(ex, HttpContext.Current.User.Identity.Name, SourcePageName);
         Session["lastpage"] = "main.aspx";
         Session["error"] = ex.Message;
         Session["error_report"] = ex.ToString();
         Response.Redirect("error.aspx", false);
     }
     finally
     {
         if(order != null)
             order.Dispose();
     }
 }