Base solution for your next web application
Open Closed

Password complexity in aspnetBoilerPoint #8867


User avatar
0
mahendra created

Hi,

I am using using Asp.Net core with JQuery. I am trying to implement password complexity on one of my textbox. I have below code in my my .cshtml

<script>
        $(document).ready(function () {
            var _passwordComplexityHelper = new app.PasswordComplexityHelper();
        });
    </script>

I am getting the below error when the page is rendered.


9 Answer(s)
  • User Avatar
    1
    maliming created
    Support Team

    hi @mahendra

    Is your javascript code executed before common-scripts.js is loaded?

  • User Avatar
    0
    mahendra created

    Hi @maliming,

    Yes my javascript code is executed before common-scripts.js

  • User Avatar
    0
    maliming created
    Support Team

    hi

    You need to execute your js code after common-scripts.js is loaded, because your code depends on it.

  • User Avatar
    0
    mahendra created

    Hi, I have done that and issue is resolved. I am getting another error in jquery.validate.js

    settings = $.data( element.form, "validator" ).settings

    I am getting my form input in elemet.form but $.data( element.form, "validator" ).settings is giving me undefined.

    Can you please help.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mahendra

    Could you send entire JS code for your new page ?

  • User Avatar
    0
    mahendra created

    Hi,

    Which code do you require ? Page code where password control textbox is or the JS code where I am getting the error.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Page code.

    Thanks,

  • User Avatar
    0
    mahendra created

    Hi,

    How can I share the page code ? The page code is very lengthy and I cannot paste the whole code here. Is there any other alternative.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mahendra

    You can send it via email with [email protected].