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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:52:00+00:00 2026-06-15T23:52:00+00:00

I have an AjaxControlToolkit that I’d like to show or hide based on a

  • 0

I have an AjaxControlToolkit that I’d like to show or hide based on a dropdown value.

I was able to sort of get it to hide by changing the text of the “ShowLinkButton” control (using a blank “” where I wanted to hide the accordion), but I’d like to hide the accordion itself. (The accordion is clickable even when the text is blank.)

So, here’s my jquery code:

$(function() {
    if ($('#<%= DDStatusList.ClientID %>').change(function() {
        var statusval2 = $("#SampleContent_Tabs_TabPanel3_DDStatusList").val();
        if (statusval2 == 4) {
            $('#<%= ShowLinkButton.ClientID%>').html("Show Accordion");
        }
        else {
            $('#<%= ShowLinkButton.ClientID%>').html("");
        }
    }));
});​

I’ve tried to make both the Accordion’s and the LinkButton’s visible property = false, and then make it true when the condition is met in the jquery function, but neither strategy seems to work.

Thoughts?

  • 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-15T23:52:01+00:00Added an answer on June 15, 2026 at 11:52 pm

    thanks, all.

    I wound up doing this:

    if ($('#<%= DDStatusList.ClientID %>').change(function () {
                                            var statusval2 = $("#MainContent_Tabs_TabPanel3_DDStatusList").val();
                                            var statusvalcurrent = $("#MainContent_LabelStatusNumber").text();
                                            if (statusval2 == 4 && statusvalcurrent == 4.3) {
    
                                                $('#<%= status43panel.ClientID%>').show();
    
                                                //alert("show");
                                            }
                                            else {
    
                                                $('#<%= status43panel.ClientID%>').hide();
    
                                                //alert("hide");
                                            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an AjaxControlToolKit TabContainer with 2 tabs that I load via a custom
I have a website that uses the AjaxControlToolkit. I'm making some parallel iPhone-friendly pages
I have an application that uses currently two DLL's for external libraries (AjaxControlToolkit is
I have an asyncfileupload control that I'm using from the ajaxcontroltoolkit. On the file
I have a page that is based on my master page. the code below
I have used the AjaxControlToolKit as some sort of a WYSWYG editor to create
I have an AjaxControlToolkit DynamicPopulate control that is updated by calls to a WCF
In have my application configured in asp.net. I am using ajaxcontroltoolkit. After building the
How to change the bg color of an ajaxcontroltoolkit balloon extender? I have a
This is what I'm talking about: http://www.asp.net/AJAX/AjaxControlToolkit/Samples/ComboBox/ComboBox.aspx basically I want to have a drop

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.