I am using Create User control with my own sql server database, I am not sure what event is there which can indicate the create user control to show its Duplicate UserName Error Message if there is an existing Username or email.
Please let me know.
thanks,
If you were using aspnet membership then CreateUser Control would have done the work itself. But from your question I guess you are not using so. In this case you will have to use logic to check for existing username. You can use Custom Validator and create a server side validation with it.
Example:
.aspx
The code behind can have:
Remember to keep the submit button under the same Validation Group as the Custom Validator i.e. “Register” in this case. You can have the control inside ajax update panel further. Hope this helps 🙂