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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:42:07+00:00 2026-05-29T11:42:07+00:00

I have some .aspx pages with one master pages. I want to give client

  • 0

I have some .aspx pages with one master pages. I want to give client side validation to all controls on the .aspx pages. For this i am using jquery validation.(ketchup plugins of validation by ashley on papermashup.com tutorials)

It works properly on .aspx page “Without” master page.
But when am using same code & link files on master page then it is not working.

Code without master page

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="validation_demo.aspx.cs" Inherits="webpages_validation_demo" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" media="screen" href="../css/jquery.ketchup.css" />
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/jquery.ketchup.js"></script>
<script type="text/javascript" src="../js/jquery.ketchup.messages.js"></script>
<script type="text/javascript" src="../js/jquery.ketchup.validations.basic.js"></script>
<link rel="shortcut icon" href="../../Styles/favicon.ico" />
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link href="../CSS/jquery.ketchup.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/style.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link href="../CSS/style_menu.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/Form_style.css" rel="stylesheet" type="text/css" />
     <link href="../CSS/StyleSheet2.css" rel="stylesheet" type="text/css" />
   <script type="text/javascript" src="../../image/jquery.js"></script> 
    <link href="../CSS/modalbox.css" rel="stylesheet" type="text/css" />
    <script src="../Js/CommonFunctions.js" type="text/javascript"></script>
    <script src="../Js/CommonValidations.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $('#signup').ketchup();
    });
</script>
</head>
<body>
   <form action="" runat="server" method="post" id="signup">
    <div style="margin-left:300px;margin-top:50px;">
          <input type="text" class="validate(required ,number, minlength(10) ,maxlength(10))"  name="number" />
    </div>
    </form>
</body>
</html>

Code with master page:

master page:

 <%@ Master Language="C#" AutoEventWireup="true" CodeFile="Master_demo.master.cs" Inherits="webpages_Master_demo" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
        <asp:ContentPlaceHolder id="head" runat="server">
        </asp:ContentPlaceHolder>
          <link rel="stylesheet" type="text/css" media="screen" href="../css/jquery.ketchup.css" />
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <script type="text/javascript" src="../js/jquery.ketchup.js"></script>
    <script type="text/javascript" src="../js/jquery.ketchup.messages.js"></script>
    <script type="text/javascript" src="../js/jquery.ketchup.validations.basic.js"></script>
    <link rel="shortcut icon" href="../../Styles/favicon.ico" />
     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      <link href="../CSS/jquery.ketchup.css" rel="stylesheet" type="text/css" />
        <link href="../CSS/style.css" rel="stylesheet" type="text/css" />
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <link href="../CSS/style_menu.css" rel="stylesheet" type="text/css" />
        <link href="../CSS/Form_style.css" rel="stylesheet" type="text/css" />
         <link href="../CSS/StyleSheet2.css" rel="stylesheet" type="text/css" />
       <script type="text/javascript" src="../../image/jquery.js"></script> 
        <link href="../CSS/modalbox.css" rel="stylesheet" type="text/css" />
        <script src="../Js/CommonFunctions.js" type="text/javascript"></script>
        <script src="../Js/CommonValidations.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#signup').ketchup();
        });
    </script>
    </head>
    <body>
  <form action="" runat="server" method="post" id="signup">   
        <div>
            <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">        
            </asp:ContentPlaceHolder>
        </div>  
</form> 
    </body>
    </html>

aspx pge with master page:

    <%@ Page Title="" Language="C#" MasterPageFile="~/webpages/Master_demo.master" AutoEventWireup="true" CodeFile="demo_validation1.aspx.cs" Inherits="webpages_demo_validation1" %>

    <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript">
        $(document).ready(function () {
            $('#signup').ketchup();
        });
    </script>
    <div style="margin-left:300px;margin-top:50px;">
              <input type="text" class="validate(required ,number, minlength(10) ,maxlength(10))"  name="number" /> 
     </div>
    </asp:Content>
  • 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-29T11:42:07+00:00Added an answer on May 29, 2026 at 11:42 am

    I think you are missing the form element on your masterpage with the ID of signup

    — Update

    OK

    Change your input to the following

     <input type="text" data-validate="validate(required ,number, minlength(10) ,maxlength(10))"  name="number" /> 
    

    Redownload the ketchup plugin here

    https://github.com/mustardamus/ketchup-plugin/downloads

    and use the following line

    <script type="text/javascript" src="js/jquery.ketchup.all.min.js"></script>
    

    instead of

    <script type="text/javascript" src="../js/jquery.ketchup.js"></script>
        <script type="text/javascript" src="../js/jquery.ketchup.messages.js"></script>
        <script type="text/javascript" src="../js/jquery.ketchup.validations.basic.js"></script>
    

    This works for me.

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

Sidebar

Related Questions

I have two aspx pages i.e. default1.aspx and default2.aspx. Default1 contains some controls, tables
I have one aspx page with some controls. Also i have one DIV which
Inside my .aspx I have some JSON code that looks like this: function someFunctionName()
I have a few aspx pages which displays GridView controls. In each control I
I have an ASP.NET Web Forms application and on one of my .ASPX pages
Is this invalid to put in an aspx file? I have some static aspx
I have two user controls (ascx); one contains some forms, and the other one
I have a master page that has two content sections like this (left some
I have four textboxes one combobox and one button ( and some other controls)
On a aspx page, I have to load a DropDown with some values coming

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.