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

  • SEARCH
  • Home
  • 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 7511805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:40:08+00:00 2026-05-29T23:40:08+00:00

environment: asp.net 3.5 <asp:CustomValidator ID=cvServerValidateDate runat=server ControlToValidate=tbDate onservervalidate=cvValidateServer ValidateEmptyText=True ClientValidationFunction=validateDate></asp:CustomValidator> <script type=text/javascript> function validateDate(oSrc,

  • 0

environment: asp.net 3.5

<asp:CustomValidator ID="cvServerValidateDate" runat="server" 
    ControlToValidate="tbDate" onservervalidate="cvValidateServer" 
    ValidateEmptyText="True" ClientValidationFunction="validateDate"></asp:CustomValidator>



<script type="text/javascript">
    function validateDate(oSrc, args)
    {
        args.IsValid = (args.Value.length >= 8);        
    }
</script>  

if the client-side validation is args.IsValid = false is there a way to access the validator’s error message value to indicate a specific error? i have several different error messages and i’d like to send of them based on type of error.

  • 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-29T23:40:10+00:00Added an answer on May 29, 2026 at 11:40 pm

    Try this:

    oSrc.errormessage = "Your validation message here";
    

    Edit

    After some further digging I found this question which has more detailed answer.

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

Sidebar

Related Questions

I use ASP.NET and WCF services in a load balanced web server environment, using
My environment is ASP.Net + IIS 7.0 + Windows Server 2008 + .Net 3.5.
I'm running a staging environment on a dedicated ASP .NET server that has worked
we have a mixed development environment using ASP.NET MVC and Ruby on Rails. We
For an ASP.Net environment what permissions should the logging file created by NLog have
We primarily use an ASP.NET environment at work. Right now I'm building an application
What are differences between CallContext and ThreadStatic? I've understood that in an ASP.NET environment
my ASP.NET application reads an xml file to determine which environment it's currently in
In a ASP.NET/JQuery/.NET 3.5 environment, how would I show a DIV with a Don't
I'm writing a small ASP.NET application in a hosted environment (meaning I don't own

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.