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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:44:08+00:00 2026-05-16T11:44:08+00:00

How can I access a asp:userControl’s property using jQuery $(#<% =ucControl1.ClientID%>).find([id$=’Panel1′]).hide(); I am trying

  • 0

How can I access a asp:userControl’s property using jQuery

$("#<% =ucControl1.ClientID%>").find("[id$='Panel1']").hide();

I am trying to show an asp:Panel with the usercontrol and it doesnt work.

<div id="ctl00_ContentPlaceHolder1_ctl02_ucControl1_Panel1">

 content....

</div>

The jQuery rendered is as follows:

 $("#ctl00_ContentPlaceHolder1_ctl02_ucControl1").find("[id$='Panel1']").show(); 
  • 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-16T11:44:09+00:00Added an answer on May 16, 2026 at 11:44 am

    If you have set Visible="false" on the user control, then you can’t show it with client-side code, because it is simply not rendered by the server-side (it is not part of the resulting HTML page).

    What you can do instead, is to leave Visible="true" on the user control and put it into a hidden wrapper DIV which can then be shown client-side:

    <div style="display:none" id="uc1Wrapper">
     <uc1:usercontrol Visible="true" runat="server">...
    </div>
    
    ...
    
    $("#uc1Wrapper").show();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I dynamically load a usercontrol in ASP.NET if I dont have access
How can I access UserId in ASP.NET Membership without using Membership.GetUser(username) in ASP.NET Web
Well, I have a really small problem. How can I access an ASP.NET Drop
I have an ASP.NET web service that I can access via a windows program
I need to store a file, such that my ASP.Net MVC app can access
How can I access metadata (dataannotations attributes) in my asp.net mvc model class from
How can we access and reference classes and variables in different pages in ASP.NET?
I can access Spring beans in my Servlets using WebApplicationContext springContext = WebApplicationContextUtils.getWebApplicationContext(getServletContext()); in
We can access the valueStack (and other objects of ActionContext ) using OGNL but
On postback : How can I access ASP.NET controls in my code-behind file, which

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.