I have a CreateUserWizard on .aspx page - fairly straight forward.
When I enter values that I know show cause an error message to appear - they do not show. For example, enter a username that you know exists already - CreateUserWizard has built-in code to check for that; the user is obviously not created, but no error
message is showing.
This confuses my users when nothing happens and no error message.
What I can say now is you need to debug the code behind for checking existed user to see if it works as you wish. Check whether you do the right way to check user, and tell the control to response the result.\
If your CreateUserWizard is inside an UpdatePanel, that is the problem. UpdatePanel eats Exception pages.
I never worked with CreateUserWizard. But it should be possible to catch any Exception in an event handler. In that you can display a message the regular way. For instance by putting some Text on some Label. (inside the same UpdatePanel!)
Superguppie.
Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
When all you've got is a Hammer, Every Problem looks like a Nail. Michael Swain.
Marked as answer by Saavik on Mar 01, 2012 06:51 PM
Saavik
Member
467 Points
457 Posts
Error messages not showing in CreateUserWizard
Feb 28, 2012 08:26 PM|LINK
I have a CreateUserWizard on .aspx page - fairly straight forward.
When I enter values that I know show cause an error message to appear - they do not show. For example, enter a username that you know exists already - CreateUserWizard has built-in code to check for that; the user is obviously not created, but no error message is showing.
This confuses my users when nothing happens and no error message.
Any ideas most appreciated!
================
Saavik
Qin Dian Tan...
All-Star
113532 Points
12480 Posts
Microsoft
Re: Error messages not showing in CreateUserWizard
Mar 01, 2012 07:26 AM|LINK
Hi,
What I can say now is you need to debug the code behind for checking existed user to see if it works as you wish. Check whether you do the right way to check user, and tell the control to response the result.\
Thanks,
If you have any feedback about my replies, please contactmsdnmg@microsoft.com.
Microsoft One Code Framework
superguppie
All-Star
48225 Points
8679 Posts
Re: Error messages not showing in CreateUserWizard
Mar 01, 2012 01:48 PM|LINK
If your CreateUserWizard is inside an UpdatePanel, that is the problem. UpdatePanel eats Exception pages.
I never worked with CreateUserWizard. But it should be possible to catch any Exception in an event handler. In that you can display a message the regular way. For instance by putting some Text on some Label. (inside the same UpdatePanel!)
Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
When all you've got is a Hammer, Every Problem looks like a Nail. Michael Swain.
Saavik
Member
467 Points
457 Posts
Re: Error messages not showing in CreateUserWizard
Mar 01, 2012 06:51 PM|LINK
I think you have it.
I have also learned of the OnCreateError event, where a code is sent by CreateUserWizard that can be captured and a meaningful message sent to user.
================
Saavik