Exemple #1
0
        private void BindBallType()
        {
            int ballTypeId = Request.QueryString["BallTypeId"].ToInt();

            if (ballTypeId > 0)
            {
                BallType ballTypeLookup = BallTypeDAL.GetItem(ballTypeId);

                if (ballTypeLookup != null)
                {
                    lblBallTypeId.Text   = ballTypeLookup.BallTypeId.ToString();
                    lblBallTypeName.Text = ballTypeLookup.BallTypeName;
                    lblSequence.Text     = ballTypeLookup.Sequence.ToString();
                }

                else
                {
                    lblMessage.Text = "BallType could not be found.";
                }
            }
            else
            {
                lblMessage.Text = "Invalid ID. BallType record could not be found.";
            }
        }
Exemple #2
0
        private void BindBallTypeList()
        {
            BallTypeCollection ballTypeList = new BallTypeCollection();

            ballTypeList = BallTypeDAL.GetCollection();

            rptBallTypeList.DataSource = ballTypeList;
            rptBallTypeList.DataBind();
        }