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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:04:59+00:00 2026-06-15T07:04:59+00:00

I am using menu in my aspx pages with using jquery.click. in my asp.net

  • 0

I am using menu in my aspx pages with using jquery.click. in my asp.net page.

if page not include parameters (such as “mypage.aspx) click function is work fine and my menu opening ,but when I open page with parameters (such as “mypage.aspx?id=3),in page ,my click function doesn’t work and menu not open.

This is my jquery.click function:

// Show menu
$("a.showMenu").click(function () {
    if (menuStatus != true) {
        $(".ui-page-active").animate({
            marginLeft: "165px",
        }, 300, function () {
            menuStatus = true
        });
        return false;
    } else {
        $(".ui-page-active").animate({
            marginLeft: "0px",
        }, 300, function () {
            menuStatus = false
        });
        return false;
    }
});

This is my html code (which open menu) in mypage.aspx

<a href="#" class="showMenu"><img src="images/icon-menu.png" alt="Menu" border="0" /></a>

How can I do?

  • 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-15T07:05:01+00:00Added an answer on June 15, 2026 at 7:05 am

    This is a good test to try, just to see if the jQuery is working:

    // Show menu
    $("a.showMenu").click(function () {
        alert('I am here'); // <---
        if (menuStatus != true) {
            $(".ui-page-active").animate({
                marginLeft: "165px",
            }, 300, function () {
                menuStatus = true
            });
            return false;
        } else {
            $(".ui-page-active").animate({
                marginLeft: "0px",
            }, 300, function () {
                menuStatus = false
            });
            return false;
        }
    });
    

    If not, then have you referenced the jQuery.js file? Something like:

        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a site using ASP.NET MVC with lots of jQuery and AJAX stuff,
I have two ASP.NET Menu controls on a page. One in my header (tabs)
I have a asp.net sitemap with single level dropdown menu. I am using following
I've recently set up an ASP.net site (not using MVC.net) to use URL Routing
Let's say I have two pages on the same ASP.NET C# WebSite. Page1.aspx does
I am using Asp.net Javascript and C# I have a content page, and left
I'm using jquery 1.7.2 for some ajax call onloud of an aspx page. ajax
I have a master page that contains an ASP.NET server side Menu control (System.Web.UI.WebControls.Menu)
I am using a menu system from this website CSS/Jquery Menu In chrome the
I built a Jquery dropdown menu using this tutorial . It works across browsers

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.