469,348 Members | 1,414 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,348 developers. It's quick & easy.

How to change CreateUserWizard error message color

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 only find 3 color settings:
BackColor, BorderColor, and ForeColor.

I the first two are evidently not what I need.
I tried forecolor and it simply changed all the text but not the error
message (as you would expect, but I tried anyway).

Do you know how to change the error message's color?
Thanks
Oct 19 '08 #1
6 4227


"AAaron123" <aa*******@roadrunner.comwrote in message
news:O5*************@TK2MSFTNGP05.phx.gbl...
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 only find 3 color settings:
BackColor, BorderColor, and ForeColor.

I the first two are evidently not what I need.
I tried forecolor and it simply changed all the text but not the error
message (as you would expect, but I tried anyway).

Do you know how to change the error message's color?
Thanks

I seem to recall it uses the 'alert' CSS style. If you set up a page with a
validator set to displayStyle="static" then you should be bale to use
view-source to see the style of the span containing the error message.

--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name

Oct 19 '08 #2

"Joe Fawcett" <jo********@newsgroup.nospamwrote in message
news:Or**************@TK2MSFTNGP03.phx.gbl...
>

"AAaron123" <aa*******@roadrunner.comwrote in message
news:O5*************@TK2MSFTNGP05.phx.gbl...
>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 only find 3 color settings:
BackColor, BorderColor, and ForeColor.

I the first two are evidently not what I need.
I tried forecolor and it simply changed all the text but not the error
message (as you would expect, but I tried anyway).

Do you know how to change the error message's color?
Thanks

I seem to recall it uses the 'alert' CSS style. If you set up a page with
a validator set to displayStyle="static" then you should be bale to use
view-source to see the style of the span containing the error message.

--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name
I've been reading Help and searching the internet in an attempt to
understand your reply without results.

1) I looked at the alert method and the alert message box but they do not
advertize a css style. Are there some styles that are built-in and used by
these controls? Guess I dont knoe what "'alert' CSS style" means.

2) I list the view-source that resulted from the CreateUserWizard below. The
important line is:

<span
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_EmailRegExp"
style="color:Red;display:none;">The email format is invalid.</span></td>

I see the "color:Red" but if I apply that to the asp.CreateUserWizard all
the text is red.
3)I did not do with a validator set to displayStyle="static"
because I did not know how to nor could I find documentation.

Thanks for replying

<td><table cellspacing="0" cellpadding="0" border="0"
style="height:100%;width:100%;border-collapse:collapse;">
<tr>
<td style="height:100%;width:100%;"><table border="0"
style="height:100%;width:100%;">
<tr>
<td align="center" colspan="2">Sign Up for Your New Account</td>
</tr><tr>
<td align="right"><label
for="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_UserName">User
Name:</label></td><td><input
name="ctl00$MainMasterDataRightID$CreateUserWizard 1$CreateUserStepContainer$UserName"
type="text"
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_UserName"
/><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_UserNameRequired"
title="User Name is required."
style="color:Red;visibility:hidden;">*</span></td>
</tr><tr>
<td align="right"><label
for="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_Password">Password:</label></td><td><input
name="ctl00$MainMasterDataRightID$CreateUserWizard 1$CreateUserStepContainer$Password"
type="password"
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_Password"
/><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_PasswordRequired"
title="Password is required."
style="color:Red;visibility:hidden;">*</span></td>
</tr><tr>
<td align="right"><label
for="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_ConfirmPassword">Confirm
Password:</label></td><td><input
name="ctl00$MainMasterDataRightID$CreateUserWizard 1$CreateUserStepContainer$ConfirmPassword"
type="password"
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_ConfirmPassword"
/><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_ConfirmPasswordRequired"
title="Confirm Password is required."
style="color:Red;visibility:hidden;">*</span></td>
</tr><tr>
<td align="right"><label
for="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_Email">E-mail:</label></td><td><input
name="ctl00$MainMasterDataRightID$CreateUserWizard 1$CreateUserStepContainer$Email"
type="text"
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_Email"
/><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_EmailRequired"
title="E-mail is required."
style="color:Red;visibility:hidden;">*</span></td>
</tr><tr>
<td align="right"><label
for="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_Question">Security
Question:</label></td><td><input
name="ctl00$MainMasterDataRightID$CreateUserWizard 1$CreateUserStepContainer$Question"
type="text"
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_Question"
/><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_QuestionRequired"
title="Security question is required."
style="color:Red;visibility:hidden;">*</span></td>
</tr><tr>
<td align="right"><label
for="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_Answer">Security
Answer:</label></td><td><input
name="ctl00$MainMasterDataRightID$CreateUserWizard 1$CreateUserStepContainer$Answer"
type="text"
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_Answer"
/><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_AnswerRequired"
title="Security answer is required."
style="color:Red;visibility:hidden;">*</span></td>
</tr><tr>
<td align="center" colspan="2"><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_PasswordCompare"
style="color:Red;display:none;">The Password and Confirmation Password must
match.</span></td>
</tr><tr>
<td align="center" colspan="2"><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_EmailRegExp"
style="color:Red;display:none;">The email format is invalid.</span></td>
</tr>
</table></td>
</tr>
</table></td>


Oct 19 '08 #3
I believe that if you convert the control to a template, select the

Customize Create User Step

You can select the color for the literal that displays the error
messages.

Good luck,

Jason.

On Oct 19, 3:36*pm, "AAaron123" <aaaron...@roadrunner.comwrote:
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 only find 3 color settings:
BackColor, BorderColor, and ForeColor.

I the first two are evidently not what I need.
I tried forecolor and it simply changed all the text but not the error
message (as you would expect, but I tried anyway).

Do you know how to change the error message's color?

Thanks
Oct 19 '08 #4


"AAaron123" <aa*******@roadrunner.comwrote in message
news:#i**************@TK2MSFTNGP05.phx.gbl...
>
"Joe Fawcett" <jo********@newsgroup.nospamwrote in message
news:Or**************@TK2MSFTNGP03.phx.gbl...
>>

"AAaron123" <aa*******@roadrunner.comwrote in message
news:O5*************@TK2MSFTNGP05.phx.gbl...
>>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 only find 3 color settings:
BackColor, BorderColor, and ForeColor.

I the first two are evidently not what I need.
I tried forecolor and it simply changed all the text but not the error
message (as you would expect, but I tried anyway).

Do you know how to change the error message's color?
Thanks

I seem to recall it uses the 'alert' CSS style. If you set up a page with
a validator set to displayStyle="static" then you should be bale to use
view-source to see the style of the span containing the error message.

--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name

I've been reading Help and searching the internet in an attempt to
understand your reply without results.

1) I looked at the alert method and the alert message box but they do not
advertize a css style. Are there some styles that are built-in and used by
these controls? Guess I dont knoe what "'alert' CSS style" means.

2) I list the view-source that resulted from the CreateUserWizard below.
The important line is:

<span
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_EmailRegExp"
style="color:Red;display:none;">The email format is invalid.</span></td>

I see the "color:Red" but if I apply that to the asp.CreateUserWizard all
the text is red.
3)I did not do with a validator set to displayStyle="static"
because I did not know how to nor could I find documentation.

Thanks for replying

<td><table cellspacing="0" cellpadding="0" border="0"
style="height:100%;width:100%;border-collapse:collapse;">
<tr>
<td style="height:100%;width:100%;"><table border="0"
style="height:100%;width:100%;">
<tr>
<td align="center" colspan="2">Sign Up for Your New Account</td>
</tr><tr>
<td align="right"><label
for="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_UserName">User
Name:</label></td><td><input
name="ctl00$MainMasterDataRightID$CreateUserWizard 1$CreateUserStepContainer$UserName"
type="text"
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_UserName"
/><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_UserNameRequired"
title="User Name is required."
style="color:Red;visibility:hidden;">*</span></td>
</tr><tr>
<td align="right"><label
for="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_Password">Password:</label></td><td><input
name="ctl00$MainMasterDataRightID$CreateUserWizard 1$CreateUserStepContainer$Password"
type="password"
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_Password"
/><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_PasswordRequired"
title="Password is required."
style="color:Red;visibility:hidden;">*</span></td>
</tr><tr>
<td align="right"><label
for="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_ConfirmPassword">Confirm
Password:</label></td><td><input
name="ctl00$MainMasterDataRightID$CreateUserWizard 1$CreateUserStepContainer$ConfirmPassword"
type="password"
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_ConfirmPassword"
/><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_ConfirmPasswordRequired"
title="Confirm Password is required."
style="color:Red;visibility:hidden;">*</span></td>
</tr><tr>
<td align="right"><label
for="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_Email">E-mail:</label></td><td><input
name="ctl00$MainMasterDataRightID$CreateUserWizard 1$CreateUserStepContainer$Email"
type="text"
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_Email"
/><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_EmailRequired"
title="E-mail is required."
style="color:Red;visibility:hidden;">*</span></td>
</tr><tr>
<td align="right"><label
for="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_Question">Security
Question:</label></td><td><input
name="ctl00$MainMasterDataRightID$CreateUserWizard 1$CreateUserStepContainer$Question"
type="text"
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_Question"
/><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_QuestionRequired"
title="Security question is required."
style="color:Red;visibility:hidden;">*</span></td>
</tr><tr>
<td align="right"><label
for="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_Answer">Security
Answer:</label></td><td><input
name="ctl00$MainMasterDataRightID$CreateUserWizard 1$CreateUserStepContainer$Answer"
type="text"
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_Answer"
/><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_AnswerRequired"
title="Security answer is required."
style="color:Red;visibility:hidden;">*</span></td>
</tr><tr>
<td align="center" colspan="2"><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_PasswordCompare"
style="color:Red;display:none;">The Password and Confirmation Password
must match.</span></td>
</tr><tr>
<td align="center" colspan="2"><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1_ CreateUserStepContainer_EmailRegExp"
style="color:Red;display:none;">The email format is invalid.</span></td>
</tr>
</table></td>
</tr>
</table></td>

Jason's response was right, we had used a template and assigned a CSS class
named 'alert' which had the same properties as the inline style, i.e. color:
red.

--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name

Oct 22 '08 #5
Thanks,

I'll look into that.

"Jason James" <ja***@dive-master.orgwrote in message
news:c7**********************************@l64g2000 hse.googlegroups.com...
I believe that if you convert the control to a template, select the

Customize Create User Step

You can select the color for the literal that displays the error
messages.

Good luck,

Jason.

On Oct 19, 3:36 pm, "AAaron123" <aaaron...@roadrunner.comwrote:
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 only find 3 color settings:
BackColor, BorderColor, and ForeColor.

I the first two are evidently not what I need.
I tried forecolor and it simply changed all the text but not the error
message (as you would expect, but I tried anyway).

Do you know how to change the error message's color?

Thanks

Oct 22 '08 #6
Thanks I'm going to try that.

"Joe Fawcett" <jo********@newsgroup.nospamwrote in message
news:On**************@TK2MSFTNGP06.phx.gbl...
>

"AAaron123" <aa*******@roadrunner.comwrote in message
news:#i**************@TK2MSFTNGP05.phx.gbl...
>>
"Joe Fawcett" <jo********@newsgroup.nospamwrote in message
news:Or**************@TK2MSFTNGP03.phx.gbl...
>>>

"AAaron123" <aa*******@roadrunner.comwrote in message
news:O5*************@TK2MSFTNGP05.phx.gbl...
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 only find 3 color settings:
BackColor, BorderColor, and ForeColor.

I the first two are evidently not what I need.
I tried forecolor and it simply changed all the text but not the error
message (as you would expect, but I tried anyway).

Do you know how to change the error message's color?
Thanks
I seem to recall it uses the 'alert' CSS style. If you set up a page
with a validator set to displayStyle="static" then you should be bale to
use view-source to see the style of the span containing the error
message.

--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name

I've been reading Help and searching the internet in an attempt to
understand your reply without results.

1) I looked at the alert method and the alert message box but they do not
advertize a css style. Are there some styles that are built-in and used
by these controls? Guess I dont knoe what "'alert' CSS style" means.

2) I list the view-source that resulted from the CreateUserWizard below.
The important line is:

<span
id="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_EmailRegExp"
style="color:Red;display:none;">The email format is invalid.</span></td>

I see the "color:Red" but if I apply that to the asp.CreateUserWizard all
the text is red.
3)I did not do with a validator set to displayStyle="static"
because I did not know how to nor could I find documentation.

Thanks for replying

<td><table cellspacing="0" cellpadding="0" border="0"
style="height:100%;width:100%;border-collapse:collapse;">
<tr>
<td style="height:100%;width:100%;"><table border="0"
style="height:100%;width:100%;">
<tr>
<td align="center" colspan="2">Sign Up for Your New Account</td>
</tr><tr>
<td align="right"><label
for="ctl00_MainMasterDataRightID_CreateUserWizard 1_CreateUserStepContainer_UserName">User
Name:</label></td><td><input
name="ctl00$MainMasterDataRightID$CreateUserWizar d1$CreateUserStepContainer$UserName"
type="text"
id="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_UserName"
/><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_UserNameRequired"
title="User Name is required."
style="color:Red;visibility:hidden;">*</span></td>
</tr><tr>
<td align="right"><label
for="ctl00_MainMasterDataRightID_CreateUserWizard 1_CreateUserStepContainer_Password">Password:</label></td><td><input
name="ctl00$MainMasterDataRightID$CreateUserWizar d1$CreateUserStepContainer$Password"
type="password"
id="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_Password"
/><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_PasswordRequired"
title="Password is required."
style="color:Red;visibility:hidden;">*</span></td>
</tr><tr>
<td align="right"><label
for="ctl00_MainMasterDataRightID_CreateUserWizard 1_CreateUserStepContainer_ConfirmPassword">Confirm
Password:</label></td><td><input
name="ctl00$MainMasterDataRightID$CreateUserWizar d1$CreateUserStepContainer$ConfirmPassword"
type="password"
id="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_ConfirmPassword"
/><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_ConfirmPasswordRequired"
title="Confirm Password is required."
style="color:Red;visibility:hidden;">*</span></td>
</tr><tr>
<td align="right"><label
for="ctl00_MainMasterDataRightID_CreateUserWizard 1_CreateUserStepContainer_Email">E-mail:</label></td><td><input
name="ctl00$MainMasterDataRightID$CreateUserWizar d1$CreateUserStepContainer$Email"
type="text"
id="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_Email"
/><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_EmailRequired"
title="E-mail is required."
style="color:Red;visibility:hidden;">*</span></td>
</tr><tr>
<td align="right"><label
for="ctl00_MainMasterDataRightID_CreateUserWizard 1_CreateUserStepContainer_Question">Security
Question:</label></td><td><input
name="ctl00$MainMasterDataRightID$CreateUserWizar d1$CreateUserStepContainer$Question"
type="text"
id="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_Question"
/><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_QuestionRequired"
title="Security question is required."
style="color:Red;visibility:hidden;">*</span></td>
</tr><tr>
<td align="right"><label
for="ctl00_MainMasterDataRightID_CreateUserWizard 1_CreateUserStepContainer_Answer">Security
Answer:</label></td><td><input
name="ctl00$MainMasterDataRightID$CreateUserWizar d1$CreateUserStepContainer$Answer"
type="text"
id="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_Answer"
/><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_AnswerRequired"
title="Security answer is required."
style="color:Red;visibility:hidden;">*</span></td>
</tr><tr>
<td align="center" colspan="2"><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_PasswordCompare"
style="color:Red;display:none;">The Password and Confirmation Password
must match.</span></td>
</tr><tr>
<td align="center" colspan="2"><span
id="ctl00_MainMasterDataRightID_CreateUserWizard1 _CreateUserStepContainer_EmailRegExp"
style="color:Red;display:none;">The email format is invalid.</span></td>
</tr>
</table></td>
</tr>
</table></td>

Jason's response was right, we had used a template and assigned a CSS
class named 'alert' which had the same properties as the inline style,
i.e. color: red.

--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name

Oct 22 '08 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Andrew | last post: by
2 posts views Thread by William Payne | last post: by
8 posts views Thread by Steve | last post: by
1 post views Thread by Mullin Yu | last post: by
3 posts views Thread by ad | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.