Image & Sound in Validator Controls
I am going to give code snippets for a very interesting trick.ie,to display image or sound instead of validation message in ASP.NET Validation controls.
Displaying image
<asp:RequiredFieldValidator ID="reqPercentage" runat="server"
ErrorMessage='<img src="image.gif">' ControlToValidate="txtPercentage">
</asp:RequiredFieldValidator>
for displaying image instead of text we are giving an img tag with src set to a image in our application.so when validation is failed it'll show image instead of text.
Sound in Validation Control
<asp:RequiredFieldValidator ID="reqPercentage" runat="server"
ErrorMessage='<bgsound src="sound.wav">' ControlToValidate="txtPercentage">
</asp:RequiredFieldValidator>
And also disable client side script for textbox.Run the application yo'll see the change.
hi when u r paying sound is there any option to set time?