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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:52:06+00:00 2026-06-01T13:52:06+00:00

I have an ASP.NET MVC form laid out something like this: @using (Html.BeginForm(null, null,

  • 0

I have an ASP.NET MVC form laid out something like this:

@using (Html.BeginForm(null, null, FormMethod.Post, new { id = "ccform" }))
{
    @Html.ValidationSummary(true, "Please correct the errors and try again.")
    <fieldset>
        ...
    </fieldset>
}

I have some special processing for this form something like this:

$(function () {
    $('#ccform').submit(function (e) {
        e.preventDefault();
        if (typeof (Page_ClientValidate) == 'function') {
            Page_ClientValidate();
        }
        if (Page_IsValid) {
           ...
        }
    });
});

But I’m finding that Page_ClientValidate is always undefined.

Searching the web, I see that this can be the case when the validation components are not available. But it seems that I everything that’s needed for that.

Can anyone offer some tips?

EDIT

As indicated by Nathan, I was off-track. In my Google search, I ended up looking at WebForm validations. It turns out the answer is amazingly simple in MVC.

if ($('#ccform').valid()) {
}

Nice.

  • 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-06-01T13:52:07+00:00Added an answer on June 1, 2026 at 1:52 pm

    Page_ClientValidate() is part of ASP.NET Webforms validation, and it is not used with ASP.NET MVC. You will have to use something like jQuery Validation for your ASP.NET MVC input validation.

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

Sidebar

Related Questions

When you have an ASP.Net MVC form created by Html.BeginForm(), how do fields inside
I'm using an checkbox on an ASP.NET MVC form like so: <%=Html.CheckBox(AgreeToRules, Model.AgreeToRules)%> The
I have an ajax form in asp.net mvc which is as simple as this:
I am using ASP.NET MVC 1.0. I have an ActionResult which receives a form
I have a hidden asp.net MVC control in the form: <%= Html.HiddenFor(m => m.NodeId)
I have a problem on submitting an asp.net mvc form that is using Xval
I have an Asp.Net MVC page that links out to a Asp.net web form
I have an ASP.NET MVC app with a form. Say this form has an
I have a project using asp.net mvc and form membership provider . I have
I have this ASP.net MVC project that requires a wizard like interface... So I

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.