---
title: "Page_ClientValidate in undefined"  
description: "Page_ClientValidate in undefined"  
author: "Anonymous User"  
published: 2015-01-07  
updated: 2015-01-08  
canonical: https://www.mindstick.com/forum/12849/page_clientvalidate-in-undefined  
category: "asp.net"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Page_ClientValidate in undefined

I have an [asp.net](https://www.mindstick.com/articles/934/default-folders-available-inside-the-asp-dot-net-application-folder) [user control](https://www.mindstick.com/forum/294/problem-in-access-the-control-inside-the-user-control) which is plugged into both asp.net and MVC pages

When the control is on an asp.net page the [client validation](https://www.mindstick.com/forum/34291/how-to-raise-a-callback-when-asp-dot-net-mvc-client-validation-fails) in it [works fine](https://answers.mindstick.com/qa/115732/my-software-works-fine-on-windows-10-but-crashes-on-windows-11-why) but when the control is on an MVC page the following call in the js validation fails;

Page_ClientValidate('ValidationGroup');

with the error in Chrome: Object [object [global](https://www.mindstick.com/articles/13127/macro-and-microeconomics-concepts-in-relation-to-global-organization-management)] has no method 'Page_ClientValidate'

How can I get my client [side validation](https://www.mindstick.com/interview/33573/explain-client-and-server-side-validation) to work on my mvc pages when the hyperlink [button is clicked](https://www.mindstick.com/forum/157821/write-a-jquery-code-that-selects-all-the-checkboxes-in-a-form-when-a-select-all-button-is-clicked)?

I need whatever the solution is to work across both MVC and ASP.Net as our site is a combination of the two

## Replies

### Reply by Samuel Fernandes

Try something like this,

```
$('#Form').submit(function () {    if (typeof (Page_ClientValidate)== 'function') {        Page_ClientValidate();        if (Page_IsValid== true) {            alert('the form is valid');        }    } else {        if ($(this).valid())
{            alert('the form is valid');        }    }});
```


---

Original Source: https://www.mindstick.com/forum/12849/page_clientvalidate-in-undefined

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
