D
delta.emil
Hello,
Here is my issue. I want to have validators which show an image when
the the control doesn't validate. Each user can select one of several
visual themes. For each theme the images are in a different
subdirectory.
So I need something like this:
<asp:RequiredFieldValidator ID="rfv1" Runat="server"
ControlToValidate="tx1" ErrorMessage="tx1 is empty.">
<img src='<%= GetThemeFile("error.jpg") %>' >
</asp:RequiredFieldValidator>
where GetStylesFile() is a method in a class, which all my pages
inherit and gets the proper path for an image, according to the theme
the user selected (saved in the Session).
Of course the peace of code above doesn't work (or I wouldn't be asking
for help), but I hope it illustrates what I am trying to do. Anyone
have ideas on how to achieve this?
Here is my issue. I want to have validators which show an image when
the the control doesn't validate. Each user can select one of several
visual themes. For each theme the images are in a different
subdirectory.
So I need something like this:
<asp:RequiredFieldValidator ID="rfv1" Runat="server"
ControlToValidate="tx1" ErrorMessage="tx1 is empty.">
<img src='<%= GetThemeFile("error.jpg") %>' >
</asp:RequiredFieldValidator>
where GetStylesFile() is a method in a class, which all my pages
inherit and gets the proper path for an image, according to the theme
the user selected (saved in the Session).
Of course the peace of code above doesn't work (or I wouldn't be asking
for help), but I hope it illustrates what I am trying to do. Anyone
have ideas on how to achieve this?