|
|
|
start date: Thu, 9 Aug 2007 18:26:13 +0200,
posted on: microsoft.public.dotnet.framework.aspnet
back
| Thread Index |
|
1
Stan SR
|
|
2
Teemu Keiski
|
|
3
Stan SR
|
|
4
Teemu Keiski
|
UserNameRequiredErrorMessage question
Hi,
I use the login control and I set different messages for the
UserNameRequiredErrorMessage and PasswordRequiredErrorMessage but I still
have an * when the fields are empty.
Any idea to fix that ?
Regards,
Stan
Date:Thu, 9 Aug 2007 18:26:13 +0200
Author:
|
Re: UserNameRequiredErrorMessage question
Hi,
from docs:
The UserNameRequiredErrorMessage property contains the error message
displayed in a ValidationSummary control on the login page.
The UserNameRequiredErrorMessage property value is displayed only when both
the following conditions are true:
a.. A ValidationSummary control is present on the page.
b.. The User name text box is left blank by the user.
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"Stan SR" wrote in message
news:uM%23vFIq2HHA.3400@TK2MSFTNGP03.phx.gbl...
> Hi,
>
> I use the login control and I set different messages for the
> UserNameRequiredErrorMessage and PasswordRequiredErrorMessage but I still
> have an * when the fields are empty.
> Any idea to fix that ?
> Regards,
>
> Stan
Date:Thu, 9 Aug 2007 20:18:05 +0300
Author:
|
Re: UserNameRequiredErrorMessage question
Teemu,
I 've placed an ValidationSummary like the docs says, but still have an
asterisk.
Here's the code
<asp:Login id="Login1" runat="server"
UserNameRequiredErrorMessage="<-- User name is required"
PasswordRequiredErrorMessage="<-- Password is required"
/>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" />
Stan
"Teemu Keiski" > Hi,
> from docs:
>
> The UserNameRequiredErrorMessage property contains the error message
> displayed in a ValidationSummary control on the login page.
>
> The UserNameRequiredErrorMessage property value is displayed only when
> both the following conditions are true:
>
> a.. A ValidationSummary control is present on the page.
>
> b.. The User name text box is left blank by the user.
>
>
> --
> Teemu Keiski
> AspInsider, ASP.NET MVP
> http://blogs.aspadvice.com/joteke
> http://teemukeiski.net
>
>
> "Stan SR" wrote in message
> news:uM%23vFIq2HHA.3400@TK2MSFTNGP03.phx.gbl...
>> Hi,
>>
>> I use the login control and I set different messages for the
>> UserNameRequiredErrorMessage and PasswordRequiredErrorMessage but I still
>> have an * when the fields are empty.
>> Any idea to fix that ?
>> Regards,
>>
>> Stan
>
>
Date:Thu, 9 Aug 2007 19:49:59 +0200
Author:
|
Re: UserNameRequiredErrorMessage question
Exactly. It said that it shows the message only in the ValidationSummary.
"The UserNameRequiredErrorMessage property contains the error message
displayed in a ValidationSummary control on the login page."
If you want to show it differently, you need to customize the Login control
by providing your own LayOutTemplate
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"Stan SR" wrote in message
news:eh1W52q2HHA.3940@TK2MSFTNGP05.phx.gbl...
> Teemu,
>
> I 've placed an ValidationSummary like the docs says, but still have an
> asterisk.
>
> Here's the code
>
> <asp:Login id="Login1" runat="server"
> UserNameRequiredErrorMessage="<-- User name is required"
> PasswordRequiredErrorMessage="<-- Password is required"
> />
> <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
>
> Stan
>
>
>
>
> "Teemu Keiski" > Hi,
>> from docs:
>>
>> The UserNameRequiredErrorMessage property contains the error message
>> displayed in a ValidationSummary control on the login page.
>>
>> The UserNameRequiredErrorMessage property value is displayed only when
>> both the following conditions are true:
>>
>> a.. A ValidationSummary control is present on the page.
>>
>> b.. The User name text box is left blank by the user.
>>
>>
>> --
>> Teemu Keiski
>> AspInsider, ASP.NET MVP
>> http://blogs.aspadvice.com/joteke
>> http://teemukeiski.net
>>
>>
>> "Stan SR" wrote in message
>> news:uM%23vFIq2HHA.3400@TK2MSFTNGP03.phx.gbl...
>>> Hi,
>>>
>>> I use the login control and I set different messages for the
>>> UserNameRequiredErrorMessage and PasswordRequiredErrorMessage but I
>>> still have an * when the fields are empty.
>>> Any idea to fix that ?
>>> Regards,
>>>
>>> Stan
>>
>>
>
Date:Fri, 10 Aug 2007 20:01:50 +0300
Author:
|
|
|