I have this code below, however I only want it to show a maximum of 15 characters in the string. How do I do this?
string star = "";
for (int i = 0; i < Model.orgInternalcontact.User.Password.Length; i++)
{
string mem = "*";
star = star + mem;
}
You can have any conditional statement in the second part of a for.