"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>