Re: RequiredFieldValidator showing an image
From: Fernando Lopes (fer.lopes_at_remove.terra.com.br)
Date: 02/03/05
- Next message: tshad: "Re: Global subroutines"
- Previous message: Chris Davoli: "RE: Gregorian to Julian Date conversion"
- In reply to: Gopal \(FMS, Inc.\): "Re: RequiredFieldValidator showing an image"
- Next in thread: Gopal \(FMS, Inc.\): "Re: RequiredFieldValidator showing an image"
- Reply: Gopal \(FMS, Inc.\): "Re: RequiredFieldValidator showing an image"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 3 Feb 2005 14:29:08 -0200
Okay Gopal!
Maybe the problem is my framework.
I'm using 2.2.
Probably is it.
Is there any asp.net 2.0 newsgroup? Do you know anyone?
But, if it helps, see my html code below:
<table class="nb bkg2" width="100%">
<tr>
<td nowrap="nowrap" colspan="4">
<asp:Button id="NewAddress" runat="server" width="150px"
onclick="NewAddress_Click" skinid="new"></asp:Button>
<asp:Button id="EditAddress" runat="server" width="150px"
onclick="EditAddress_Click" enabled="False"></asp:Button>
<asp:Button id="DeleteAddress" runat="server" width="150px" enabled="False"
onclick="DeleteAddress_Click" skinid="del"></asp:Button>
<asp:Button id="SetPrimaryAddress" runat="server" width="150px"
enabled="False" onclick="SetPrimaryAddress_Click"></asp:Button>
</td>
</tr>
<tr>
<td nowrap="nowrap" colspan="4">
<asp:GridView id="GridAddresses" runat="server" width="100%"
autogeneratecolumns="False" pagesize="1" datakeynames="AddressID"
onselectedindexchanged="GridAddresses_SelectedIndexChanged"></asp:GridView>
<ucg:PagingControl id="PC1" runat="server" visible="false"
onpagingcontrolnavigation="PC1_PagingControlNavigation" />
</td>
</tr>
<tr>
<td nowrap="nowrap" colspan="4">
<table class="nb bkg2" width="100%">
<tr>
<td nowrap="nowrap"><asp:label id="lbl_Country" runat="server"
skinid="bold"></asp:label></td>
<td nowrap="nowrap"><UCPU:combocountries id="Country" runat="server"
autopostback="true" width="200"
oncombocountryindexchanged="Country_SelectedIndexChanged"
combocountriesvalidation="true"
combocountriesvalidationgroup="AddressManager" /></td>
<td nowrap="nowrap"><asp:label id="lbl_PostalCode" runat="server"
skinid="bold"></asp:label></td>
<td nowrap="nowrap">
<UCG:maskededitcontrol id="PostalCode" runat="server" datatype="Alfanumeric"
width="185" mask="#####-###" controlname="PostalCode"/>
<asp:button id="ValidateZipCode" runat="server" width="18px" height="18px"
/>
</td>
</tr>
<tr>
<td nowrap="nowrap"><asp:label id="lbl_State" runat="server"
skinid="bold"></asp:label></td>
<td nowrap="nowrap"><UCPU:combostates id="State" runat="server"
autopostback="true" width="200"
oncombostateindexchanged="State_SelectedIndexChanged"
combostatesvalidation="true" combostatesvalidationgroup="AddressManager"
/></td>
<td nowrap="nowrap"><asp:label id="lbl_Perimeter" runat="server"
skinid="bold"></asp:label></td>
<td nowrap="nowrap"><UCPU:comboperimeters id="Perimeter" runat="server"
autopostback="true" width="213" comboperimetersvalidation="false" /></td>
</tr>
<tr>
<td nowrap="nowrap"><asp:label id="lbl_City" runat="server"
skinid="bold"></asp:label></td>
<td nowrap="nowrap">
<CCS:PickListCall id="PickListCall1" runat="server" picklistcallwidth="185"
onpicklistcallbuttonclick="PickListCallClick"
picklistcallpage="PickListCityPage" picklistdestinyview="CityPickList" />
<asp:RequiredFieldValidator id="rfvFirstName"
ControlToValidate="AddressName" Display="Dynamic"
ErrorMessage="First Name Is Required" Runat="server" CssClass="AlertText"
EnableClientScript="True"
validationgroup="AddressManager"><img src="../../Images/img_miss.gif"
/></asp:RequiredFieldValidator>
</td>
<td nowrap="nowrap"><asp:label id="lbl_TimeZone" runat="server"
skinid="bold"></asp:label></td>
<td nowrap="nowrap">
<UCPU:combotimezones id="SimplectTimeZone" runat="server"
autopostback="false"
width="213" combotimezonesautopostback="false"
combotimezonevalidation="true"
combotimezonevalidationgroup="AddressManager" />
</td>
</tr>
</table>
<...>
Thanks.
Fernando
"Gopal (FMS, Inc.)" <gopal_NOSPAM@fmsinc.com> wrote in message
news:u3ShZjgCFHA.2876@TK2MSFTNGP12.phx.gbl...
> This works fine for me. The version of the framework I am using is 1.1.
> The
> tag I tested is below.
> <asp:RequiredFieldValidator id="rfvFirstName"
> ControlToValidate="txtDiscussionNote" Display="Dynamic"
> ErrorMessage="First
> Name Is Required"
> Runat="server" CssClass="AlertText" EnableClientScript="True"
> validationgroup="sdfasd">
> <img src="Images/FMSLogo.gif" />
> </asp:RequiredFieldValidator>
> May be you can post html portion of your aspx page for someone to help you
> out.
> --
> Gopal Rangaswamy
> Microsoft Certified Solutions Developer
> FMS, Inc.
> <http://www.fmsinc.com/consulting>
> <http://www.fmsinc.com/dotnet/SourceBook/>
>
> "Fernando Lopes" <fer.lopes@remove.terra.com.br> wrote in message
> news:uMkC2LgCFHA.1836@tk2msftngp13.phx.gbl...
>> Hi.
>> I want to show an image in a requiredfield validator instead of "*".
>> So, I 'm set the requiredfieldvalidator attributes like following:
>>
>> <asp:RequiredFieldValidator id=rfvFirstName
>> ControlToValidate="AddressName"
>> Display="Dynamic"
>> ErrorMessage="First Name Is Required"
>> Runat="server"
>> CssClass="AlertText"
>> EnableClientScript="True"
>> ValidationGroup="AddressManager">
>> <img src="../../Images/img_miss.gif" />
>> </asp:RequiredFieldValidator>
>>
>> But always show the "*".
>> What can I doing wrong?
>>
>> Thanks
>> Fernando Lopes
>>
>>
>
>
- Next message: tshad: "Re: Global subroutines"
- Previous message: Chris Davoli: "RE: Gregorian to Julian Date conversion"
- In reply to: Gopal \(FMS, Inc.\): "Re: RequiredFieldValidator showing an image"
- Next in thread: Gopal \(FMS, Inc.\): "Re: RequiredFieldValidator showing an image"
- Reply: Gopal \(FMS, Inc.\): "Re: RequiredFieldValidator showing an image"
- Messages sorted by: [ date ] [ thread ]