Esempio n. 1
0
        private void checkuserPinchangevalidity()
        {
            try
            {
                UserBLL user = new UserBLL();

                DataTable dt = user.checkuserPinchangevalidity((string)LumexSessionManager.Get("ActiveUserId"));

                lblChangeCout.Text = dt.Rows[0]["ModifyCount"].ToString();
                if (Convert.ToInt32(lblChangeCout.Text) >= 3)
                {
                    if (dt.Rows[0]["IsPaid"].ToString() == "Yes")
                    {
                        currentPinTextBox.Enabled = true;
                        btnPayforPinGenerate.Visible = false;

                    }
                    else
                    {
                        currentPinTextBox.Enabled = false;
                        btnPayforPinGenerate.Visible = true;

                    }

                }
                // Check change conditaion now.
            }
            catch (Exception)
            {

                //throw;
            }
        }