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

  • Home
  • SEARCH
  • 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 7557173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:03:46+00:00 2026-05-30T12:03:46+00:00

i having a very weird problem now . I has separate 2 jquery js

  • 0

i having a very weird problem now . I has separate 2 jquery js file with my aspx file.However the pageload doesn’t seem like work.
Because I’m using UpdatePanel to asynchronously call a button click event in a page.
Therefore i attach my click event within the page load method

Here is the screen shoot of my js file

enter image description here

Here is the sample code for modalPopup.js

function pageLoad() {

//#region Search function   
$("[id$=txtSearch]").keyup(function (e) {
    "[id$=txtCurrentPage2]"
    $("[id$=txtCurrentPage2]").val(1)
    $("[id$=txtCurrentPage]").val(1)
    $("[id$=hfCurrentTxt]").val(1)
    var txtSearch = $("[id$=txtSearch]").val()
    var pagesize = $("[id$=ddlRowPerPage]").val()
    var skip = $("[id$=txtCurrentPage2]").val()
    var type = $("[id$=hfGvType]").val()
    sendData(txtSearch, skip, pagesize, type);
    e.preventDefault();
});
//#endregion 

The sample code for the ASPX.js

function pageLoad() {
$("[id$=txtCMemberID]").bind('keyup change', function (e) {
    alert("hello");
    e.preventDefault();

});

}

The modalPopup.js can work very smoothly, but the ASPX.js seem like doesn’t work.Anyone face this problem before.? Please guide me some idea. Thanks

  • 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-30T12:03:48+00:00Added an answer on May 30, 2026 at 12:03 pm

    Offhand, I’d wager that you are loading ASPX.js first, and then loading modalPopup.js later in the page. Both files define a global function named pageLoad. As you cannot have two separate global functions that share the same name, one is redefining the other. Rename one of the functions (it doesn’t have to be called pageLoad). Example as follows:

    Change ASPX.js to:

    function bindKeyUpChangeHandler() {
        $("[id$=txtCMemberID]").bind('keyup change', function (e) {
            alert("hello");
            e.preventDefault();
    
        });
    }
    

    then call bindKeyUpChangeHandler() in addition to pageLoad().

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

Sidebar

Related Questions

I'm having a very weird problem with radio buttons in JQuery Mobile. I'm populating
I'm working with jQuery's .get() function and I'm having a very weird problem using
I am having a very weird problem that I've never had before when using
I'm having a very weird problem with a vector in my application. Details... I
Greetings. I'm having a weird problem with jQuery on my website. I'm trying to
I'm having a very weird problem.I'm working on an assignment that involves building a
I am having a very weird CSRF protection problem in CodeIgniter. I have made
I'm having a very weird problem that for the life of me I can
I'm having a bit of a problem with a very weird side effect that's
I am having a very weird problem with building a SQL Server 2008 Database

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.