Rafcord
Rafcord
CC#
Created by Rafcord on 2/4/2024 in #help
✅ Method doGet create error 404.
It is java.
16 replies
CC#
Created by Rafcord on 1/29/2024 in #help
Button showing password.
This code doesn't work. So what should it look like?
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 = !isPasswordShown " />
</div>
12 replies
CC#
Created by Rafcord on 1/29/2024 in #help
Button showing password.
This is my idea, but I don't know how to toggle after pressing the button.
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>
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>
12 replies
CC#
Created by Rafcord on 1/29/2024 in #help
Button showing password.
I don't know what blasor is. This is in cshtml file.
12 replies
CC#
Created by Rafcord on 12/14/2023 in #help
No toolbox in the windows forms application project.
This was the solution.
6 replies