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 4599696
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:34:39+00:00 2026-05-21T23:34:39+00:00

I have a fairly large input form with a number of ASP.NET Validators on

  • 0

I have a fairly large input form with a number of ASP.NET Validators on it, most are RegexVlidators. Validators work fine on a client side and they prevent a postback(submit) if needed. But now we have to while still validating and displaying errors just like they used to also have to allow postback. I have to replace my RegexValidators with jquery validator plugin, so my question is: can validator plugin used so it flags and displays errors but does not prevent submit/postback? If not, what can be used for that, other then custom solution)? Typical validator in use looks like this:

 <asp:RegularExpressionValidator 
                                ID = "ContactEMailValidator" 
                                runat = "server" 
                                ControlToValidate = "ContactEMail"
                                ErrorMessage = "Contact Email is not a valid e-mail." 
                                ValidationGroup="WorkflowsAndIneligible"
                                ValidationExpression = "^\s*\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*\s*$"
                                SetFocusOnError = "true">
                            </asp:RegularExpressionValidator>

Besides validation it does a number of other things – set focus on offending input control, displays a tabbable error message

  • 1 1 Answer
  • 2 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-21T23:34:40+00:00Added an answer on May 21, 2026 at 11:34 pm

    I use the Position Absolute inline validation engine to do something similar. It allows you to have full control over the error messages without preventing postback if needed.

    For example you can use the showPrompt option to display an error field over a form field, but still allow ajax posting.

    $('#FormFieldID').validationEngine('showPrompt', 'This a custom error msg', 'error', true)
    

    More information here – https://github.com/posabsolute/jQuery-Validation-Engine

    EDIT: Just a quick example of how you might use this in production –

        $('#submitButton').click(function(){
            $form = $('#MyForm');
            $form.validationEngine();
            if($form.validationEngine({returnIsValid:true})){
                $form.submit()
            }
        });
    

    That example would block the form submission and you could easily build out/display your errors in an else block. If you don’t want to block the form submission you can just ignore the if statement and submit the form regardless and build out your errors from ValidationEngine. You would need to provide a bit more detail for a specific example though.

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

Sidebar

Related Questions

I have a form with a fairly large amount of input that will also
I have a fairly large PHP codebase (10k files) that I work with using
I have a fairly large SQL statement which has a number of inner joins
So I have a fairly large form with two different sections. Both sections start
We have a fairly large Windows based 1.1 .NET application that we are considering
I have a fairly large database containing a number of different tables representing different
I am writing a fairly large webapp in asp.net/c# with MSSQL 2008 r2 serving
I have a fairly large work project that uses pygtk for the GUI and
I have a fairly large makefile that creates a number of targets on the
We have fairly large C++ application which is composed of about 60 projects in

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.