Exemplo n.º 1
0
    public void LoadData()
    {
        CSLOrderingARCBAL.LinqToSqlDataContext db = null;
        try
        {
            ddlGrade.DataSource     = ProductBAL.GradeList();
            ddlGrade.DataTextField  = "Grade";
            ddlGrade.DataValueField = "Grade";
            ddlGrade.DataBind();

            gvGrade.DataSource = ProductBAL.GetProductGrade();
            gvGrade.DataBind();
        }

        catch (Exception objException)
        {
            db = new CSLOrderingARCBAL.LinqToSqlDataContext();
            db.USP_SaveErrorDetails(Request.Url.ToString(), "LoadData", Convert.ToString(objException.Message), Convert.ToString(objException.InnerException), Convert.ToString(objException.StackTrace), "", HttpContext.Current.Request.UserHostAddress, false, Convert.ToString(HttpContext.Current.Session[enumSessions.User_Id.ToString()]));
            db.Dispose();
        }
    }