string encryptedPassword = ""; bool isPasswordShown = false; for (int i = 0; i < Model.Password.Length; i++) { encryptedPassword += "*"; } <p ALIGN="LEFT"><b>Id:</b> @Model.Id </p> <p ALIGN="LEFT"><b>Rank: </b> @Model.Ranks</p> <p ALIGN="LEFT"><b>Nick: </b> @Model.Nick</p> <p ALIGN="LEFT"><b>Email:</b> @Model.Login. </p> if (isPasswordShown) { <p ALIGN="LEFT"><b>Password:</b> @Model.Password </p> } else { <p ALIGN="LEFT"><b>Password:</b> @encryptedPassword </p> } <div align="left"> <input type="button" id="0" value="Show password" style="border-radius: 7px;background-color: #E9987D; color: white;" onclick="isPasswordShown = !isPasswordShown " /> </div>
string encryptedPassword = "";bool isPasswordShown = false;for (int i = 0; i < Model.Password.Length; i++){ encryptedPassword += "*";}<p ALIGN="LEFT"><b>Id:</b> @Model.Id </p><p ALIGN="LEFT"><b>Rank: </b> @Model.Ranks</p><p ALIGN="LEFT"><b>Nick: </b> @Model.Nick</p><p ALIGN="LEFT"><b>Email:</b> @Model.Login. </p>if (isPasswordShown){ <p ALIGN="LEFT"><b>Password:</b> @Model.Password </p>}else{ <p ALIGN="LEFT"><b>Password:</b> @encryptedPassword </p>}<div align="left"> <input type="button" id="0" value="Show password" style="border-radius: 7px;background-color: #E9987D; color: white;" onclick="!isPasswordShown " /></div>