Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 425677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:24:14+00:00 2026-05-12T19:24:14+00:00

I have extended the ASP.NET MVC Html Helper to include my own ValidationImage that

  • 0

I have extended the ASP.NET MVC Html Helper to include my own ValidationImage that outputs an image rather than the standard tags. Details are shown within the StackOverflow Question: How do I extend Html.ValidationMessage so that I can include an image as the error?

I would like this to integrate well with xVal now. What would be the best method for doing this? How would I change the xVal.jquery.validate.js file to work with my error images?

Currently I have adjusted the xVal.jquery.validate.js file to work with the img tag rather than the standard span tag. I am receiving an error when the xVal.jquery.validate.js plug-in is trying to append something to the img tag. I assume it is trying to append the error text to the image tag which would cause an error.

What would be the best way to modify the xVal plug-in so that the error is added to the title attribute and the img tag is displayed into view?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T19:24:14+00:00Added an answer on May 12, 2026 at 7:24 pm

    A quick way to do this is to put your image into the attributes e.g.

    [Required(ErrorMessage="<img src=\"error.gif\">")]
    public string Forename { get; set; }
    

    But its not ideal. Maybe a helper class could populate the error message or something like this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Server side extjs form validation using zend framework I have extended Zend_Form class to
Have you noticed that every 10 questions on this site is about jQuery? Anyway...
I have the following text in a file called build.xml: component.rollup=true component.rollup.modules.buildfiles=io-base.xml, io-form.xml, io-xdr.xml
I have a JFrame and following components. JButton = jButton1 Progress Bar = progressBar
Have a lot of troubles on production server. Some routing cause crashing of Application
Have written a method; when I try to run it, I get the error:
I have a base64 string and i need to show it in my IE
I have a form within a SimpleModal modal, but when I try to use
I have a flash video using the FLVPlayback 2.5 container with a customized skin,
This user asked a similar question but had no viable solution in the answers,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.