Example #1
0
        protected void btnUpdate_Click(object sender, EventArgs e)
        {
            if (txtRName.Text.Length <= 0)
            {
                lblRNameMsg.Text = "Name cannot be blank";
            }

            if (txtRName.Text.Length > 0)
            {
                UserAccount user    = (UserAccount)Session["UserAccountObj"];
                int         riderId = user.UserId;

                RiderBLL riderBLL = new RiderBLL();
                int      result   = riderBLL.DoUpdateRider(riderId, txtRName.Text);

                if (result > 0)
                {
                    alertSuccess.Visible = true;
                }

                else
                {
                    alertFailure.Visible = true;
                    lblAlertMsg.Text     = "Error in updating rider profile";
                }
            }
        }