"Joe Fawcett" <jo********@new sgroup.nospamwr ote in message
news:Or******** ******@TK2MSFTN GP03.phx.gbl...
>
"AAaron123" <aa*******@road runner.comwrote in message
news:O5******** *****@TK2MSFTNG P05.phx.gbl...
>I'm using the CreateUserWizar d 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="s tatic" 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 CreateUserWizar d below. The
important line is:
<span
id="ctl00_MainM asterDataRightI D_CreateUserWiz ard1_CreateUser StepContainer_E mailRegExp"
style="color:Re d;display:none; ">The email format is invalid.</span></td>
I see the "color:Red" but if I apply that to the asp.CreateUserW izard all
the text is red.
3)I did not do with a validator set to displayStyle="s tatic"
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:1 00%;width:100%; border-collapse:collap se;">
<tr>
<td style="height:1 00%;width:100%; "><table border="0"
style="height:1 00%;width:100%; ">
<tr>
<td align="center" colspan="2">Sig n Up for Your New Account</td>
</tr><tr>
<td align="right">< label
for="ctl00_Main MasterDataRight ID_CreateUserWi zard1_CreateUse rStepContainer_ UserName">User
Name:</label></td><td><input
name="ctl00$Mai nMasterDataRigh tID$CreateUserW izard1$CreateUs erStepContainer $UserName"
type="text"
id="ctl00_MainM asterDataRightI D_CreateUserWiz ard1_CreateUser StepContainer_U serName"
/><span
id="ctl00_MainM asterDataRightI D_CreateUserWiz ard1_CreateUser StepContainer_U serNameRequired "
title="User Name is required."
style="color:Re d;visibility:hi dden;">*</span></td>
</tr><tr>
<td align="right">< label
for="ctl00_Main MasterDataRight ID_CreateUserWi zard1_CreateUse rStepContainer_ Password">Passw ord:</label></td><td><input
name="ctl00$Mai nMasterDataRigh tID$CreateUserW izard1$CreateUs erStepContainer $Password"
type="password"
id="ctl00_MainM asterDataRightI D_CreateUserWiz ard1_CreateUser StepContainer_P assword"
/><span
id="ctl00_MainM asterDataRightI D_CreateUserWiz ard1_CreateUser StepContainer_P asswordRequired "
title="Password is required."
style="color:Re d;visibility:hi dden;">*</span></td>
</tr><tr>
<td align="right">< label
for="ctl00_Main MasterDataRight ID_CreateUserWi zard1_CreateUse rStepContainer_ ConfirmPassword ">Confirm
Password:</label></td><td><input
name="ctl00$Mai nMasterDataRigh tID$CreateUserW izard1$CreateUs erStepContainer $ConfirmPasswor d"
type="password"
id="ctl00_MainM asterDataRightI D_CreateUserWiz ard1_CreateUser StepContainer_C onfirmPassword"
/><span
id="ctl00_MainM asterDataRightI D_CreateUserWiz ard1_CreateUser StepContainer_C onfirmPasswordR equired"
title="Confirm Password is required."
style="color:Re d;visibility:hi dden;">*</span></td>
</tr><tr>
<td align="right">< label
for="ctl00_Main MasterDataRight ID_CreateUserWi zard1_CreateUse rStepContainer_ Email">E-mail:</label></td><td><input
name="ctl00$Mai nMasterDataRigh tID$CreateUserW izard1$CreateUs erStepContainer $Email"
type="text"
id="ctl00_MainM asterDataRightI D_CreateUserWiz ard1_CreateUser StepContainer_E mail"
/><span
id="ctl00_MainM asterDataRightI D_CreateUserWiz ard1_CreateUser StepContainer_E mailRequired"
title="E-mail is required."
style="color:Re d;visibility:hi dden;">*</span></td>
</tr><tr>
<td align="right">< label
for="ctl00_Main MasterDataRight ID_CreateUserWi zard1_CreateUse rStepContainer_ Question">Secur ity
Question:</label></td><td><input
name="ctl00$Mai nMasterDataRigh tID$CreateUserW izard1$CreateUs erStepContainer $Question"
type="text"
id="ctl00_MainM asterDataRightI D_CreateUserWiz ard1_CreateUser StepContainer_Q uestion"
/><span
id="ctl00_MainM asterDataRightI D_CreateUserWiz ard1_CreateUser StepContainer_Q uestionRequired "
title="Security question is required."
style="color:Re d;visibility:hi dden;">*</span></td>
</tr><tr>
<td align="right">< label
for="ctl00_Main MasterDataRight ID_CreateUserWi zard1_CreateUse rStepContainer_ Answer">Securit y
Answer:</label></td><td><input
name="ctl00$Mai nMasterDataRigh tID$CreateUserW izard1$CreateUs erStepContainer $Answer"
type="text"
id="ctl00_MainM asterDataRightI D_CreateUserWiz ard1_CreateUser StepContainer_A nswer"
/><span
id="ctl00_MainM asterDataRightI D_CreateUserWiz ard1_CreateUser StepContainer_A nswerRequired"
title="Security answer is required."
style="color:Re d;visibility:hi dden;">*</span></td>
</tr><tr>
<td align="center" colspan="2"><sp an
id="ctl00_MainM asterDataRightI D_CreateUserWiz ard1_CreateUser StepContainer_P asswordCompare"
style="color:Re d;display:none; ">The Password and Confirmation Password must
match.</span></td>
</tr><tr>
<td align="center" colspan="2"><sp an
id="ctl00_MainM asterDataRightI D_CreateUserWiz ard1_CreateUser StepContainer_E mailRegExp"
style="color:Re d;display:none; ">The email format is invalid.</span></td>
</tr>
</table></td>
</tr>
</table></td>