Example #1
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            string _username = txtUserName.Text.ToString();
            string _userrole = dropUserRole.SelectedValue.ToString();
            string _password = Convert.ToString(System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(txtPasscode.Text.ToString())));

            //var base64EncodedBytes = System.Convert.FromBase64String(base64EncodedData);
            //return System.Text.Encoding.UTF8.GetString(base64EncodedBytes);
            if (_username != null)
            {
                Debug.WriteLine("");
                Debug.WriteLine("Username: "******"User Role: " + _userrole);
                Debug.WriteLine("Password: "******"Query Status: " + res);
                if (res == 1)
                {
                    lblSubmission.Visible = true;
                    rowUserName.Visible   = false;
                    rowUserRole.Visible   = false;
                    rowPasscode.Visible   = false;
                    rowRePasscode.Visible = false;
                    rowSubmit.Visible     = false;
                }
            }
            else
            {
                Debug.WriteLine("alert(Please Enter Product Name.)");
            }
        }