//---------------------------------------------------------------------------------------------------- public void Txt_Password_OnFocus() { var txt_Password = jF2(".Txt_Password"); string value = txt_Password.val().As <string>(); value = JsStr.Replace(value, "#", ""); if (value.Length < 1) { txt_Password.val(""); } }
//---------------------------------------------------------------------------------------------------- public void Txt_Password_OnBlur() { var txt_Password = jF2(".Txt_Password"); string value = txt_Password.val().As <string>(); value = JsStr.Replace(value, "#", ""); if (value.Length < 1) { string s = ""; for (int i = 0; i < this.Temp_PasswordLength; i++) { s += "#"; } txt_Password.val(s); } }