Пример #1
0
        private void DisplayBooks()
        {
            BusinessLogicDBOperations dbOp = new BusinessLogicDBOperations();

            try
            {
                BooksList.DataSource = Books;
                BooksList.DataBind();
            }
            catch (Exception ex)
            {
                BusinessLogicExceptionOperations logger = new BusinessLogicExceptionOperations();
                logger.SaveException(ex.Message);
                base.SetPageMessage(ex.Message, Utilities.Utilities.Severity.error);
                return;
            }
        }
Пример #2
0
        protected void btnCheckOut_Click(object sender, EventArgs e)
        {
            try
            {
                if (String.IsNullOrWhiteSpace(hdnField.Value))
                {
                    base.SetPageMessage(BOOK_SELECT_MESSAGE, Utilities.Utilities.Severity.error);
                    return;
                }

                Response.Redirect("CheckOut.aspx?bookID=" + int.Parse(hdnField.Value));
            }
            catch (ThreadAbortException ex)
            {
                BusinessLogicExceptionOperations logger = new BusinessLogicExceptionOperations();
                logger.SaveException(ex.Message);
            }
        }