Update:
Here is something that will work, but requires private thought:
void CreateUserWizard1_CreatingUser(object sender, LoginCancelEventArgs e) { typeof(CreateUserWizard).GetField( "_unknownErrorMessage", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance) .SetValue(sender, "My error message"); e.Cancel = true; }
Basically, you will set the error message you want for this field, and CreateUserWizard will select it. As a private reflection, this is not a โsupportedโ technique, but at least it is an option to consider if nothing works.
I donโt think you need to do anything special for this. Typically, anything that supports client-side validation has server-side validation logic. Actually, for something like a duplicate name, there is only server side validation, so I don't think disabling javascript should affect the script.
What exactly do you see when you turn off javascript and you post a duplicate name? If you can reproduce this problem with a simple page, or are there some additional factors that may affect it?
I tried using simple CUW and turned off javascript and a repeating user error was played.
source share