T
Tom
I have a textbox on my web form were users can enter in 1 name or many names. The form then validates the name against the database.
If the name is valid its then saved into a varaible to be used at a later time. The issue I'm having is as follows:
the user enters in 2 names
John, Greg
clicks my valid button they're both valid so both names are stored in the variable so my variable looks like
John,Greg and both are in the textbox.
Now, the issue:
If the user clicks valid the variable gets populated, then the user decides to remove a name so it looks like this in the textbox
John
then they click valid, but the textbox still shows
John, Greg even though Greg was removed
Is there a way to determine if a name was removed or if the textbox was cleared and the user entered in new names?
such as this
first time entered:
John, Greg
user deletes both names and enters after the variable was populated
Stacey, Michelle
so when they click validate this time, I only want to see
Stacey, Michelle and not
John,Greg, Stacey,Michelle.
what is the best way to determine if the names changed after getting validated?
I saw another question like this, and I tried the replies to that but no success, any other suggestions?
If the name is valid its then saved into a varaible to be used at a later time. The issue I'm having is as follows:
the user enters in 2 names
John, Greg
clicks my valid button they're both valid so both names are stored in the variable so my variable looks like
John,Greg and both are in the textbox.
Now, the issue:
If the user clicks valid the variable gets populated, then the user decides to remove a name so it looks like this in the textbox
John
then they click valid, but the textbox still shows
John, Greg even though Greg was removed
Is there a way to determine if a name was removed or if the textbox was cleared and the user entered in new names?
such as this
first time entered:
John, Greg
user deletes both names and enters after the variable was populated
Stacey, Michelle
so when they click validate this time, I only want to see
Stacey, Michelle and not
John,Greg, Stacey,Michelle.
what is the best way to determine if the names changed after getting validated?
I saw another question like this, and I tried the replies to that but no success, any other suggestions?