Vote count:
0
I have a table with multiple controls. In many controls I require multiple validators like Required & Range or so. I added multiple validator to a textbox & it displays also. But the location of displaying error message of both validators differ. Is their a way to display any of those error message next to the control itself !!
<tr>
<td style="width: 226px">
<asp:Label ID="lbl" runat="server" Text="Floors"></asp:Label>
</td>
<td style="width: 277px">
<asp:TextBox ID="floorsTxt" runat="server"></asp:TextBox>
</td>
<td style="width: 194px">
<asp:RequiredFieldValidator ID="rfllorsReqd" runat="server"
ControlToValidate="floorsTxt" ErrorMessage="Enter Floors"
SetFocusOnError="True"></asp:RequiredFieldValidator>
<asp:RangeValidator ID="rfloors" runat="server" ControlToValidate="floorsTxt"
ErrorMessage="Invalid Count of Floors" Font-Bold="True" Font-Size="Small"
MaximumValue="100" MinimumValue="1" Type="Integer"></asp:RangeValidator>
</td>
</tr>
I am also looking for having a image like Red Exclamation instead of error message. Is this also possible !!
Any help is highly appreciated.
Thanks
asked 34 secs ago
Display message on same location Multiple Validators on single control
Aucun commentaire:
Enregistrer un commentaire