473,503 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Add an error message to CreateUserWizard for duplicate username

Hi all,

I have a CreateUserWizard with two steps, one to create the user, and
the other to associate roles to him. When I try to insert a user with a
username that already exists, I can't create the user and this is ok.
However, there is no error message of any sort, so I'd like to add a
message like 'Please enter a different user name.' How can I do this?

Thanks!
ibiza

Feb 14 '06 #1
2 2902
ibiza,

There is a property on the wizard called "DuplicateUserNameErrorMessage".
Set the message there.
--
Shane Bauer - MCP ASP.NET
http://www.shanebauer.com

"ibiza" <la******@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi all,

I have a CreateUserWizard with two steps, one to create the user, and
the other to associate roles to him. When I try to insert a user with a
username that already exists, I can't create the user and this is ok.
However, there is no error message of any sort, so I'd like to add a
message like 'Please enter a different user name.' How can I do this?

Thanks!
ibiza

Feb 14 '06 #2
Thank you, but it does not seem to change anything...it's strange :(

Can it be because I have set up wizard steps or something?
Because I checked the simples example on asp.net
(http://www.asp.net/QuickStart/aspnet...dBasic_vb.aspx)
and they don't even need to set the DuplicateUserNameErrorMessage
property to display an error message correctly...

Feb 14 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1991
by: Junsan | last post by:
When I am trying to create users through the ASP.NET Configuration in Visual Studio I am getting the following Error (I got the final version of Visual Studio): Exception has been thrown by the...
2
2243
by: Learner | last post by:
Hello, I have defined another textbox control in the CreateUserWizard control and this is how I am trying to get the value of it in the code behind page is below im myStep As...
2
4317
by: guoqi zheng | last post by:
Dear sir, I am using the createUserWizard of ASP.NET 2.0. I am trying to add two extra fields to it. FirstName and LastName. However I did not find out how can get the value out of this two...
0
2579
by: Smokey Grindle | last post by:
I am using the user creation wizard in asp.net 2.0 and using it to send the user an email message when their account is created, well this works great if the address is a valid mailbox, but when it...
0
1492
by: pgaudreau | last post by:
Greetings. ASP.NET 2.0 / VB / IIS 6 / SQL Server 2005 I have customized the Create User Wizard a bit, and would like to know how I go about displaying error messages when they occur. It seemed...
0
1363
by: asumal | last post by:
Hello I am new to ASP.NET. I am using CreateUserWizard control to register & create a user. I am using Membership API. I have a Cancel button on the CreateUserWizard step 2 alongwith Create User ...
0
1430
by: asumal | last post by:
Hello I am new to ASP.NET. I am using CreateUserWizard control to register & create a user. I am using Membership API. I have a Cancel button on the second step of CreateUserWizard control...
4
3798
by: gurufordy | last post by:
Hello. Trying to use the ASP.net user functionality but it keeps failing on me. I have created a login and registration page for my site. When you fill in the registration form it should send a...
6
4417
by: AAaron123 | last post by:
I'm using the CreateUserWizard Web Server Control The error message when the passwords do not match is colored red. Red does not show well against my background so I like to change that color. I...
0
7074
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7273
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7322
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6982
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7451
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5000
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4667
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
374
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.