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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:32:23+00:00 2026-05-21T17:32:23+00:00

How to access or get reference of control in UpdatePanel through javascript?

  • 0

How to access or get reference of control in UpdatePanel through javascript?

  • 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-21T17:32:24+00:00Added an answer on May 21, 2026 at 5:32 pm

    A control in an UpdatePanel is no different than a control on any other page so you can access them in the same way. The difference is that an UpdatePanel can have new controls added constantly with no easy way for you to get the ClientID of the control on the fly as the UpdatePanel updates. In these cases I have used a unique style name (style doesn’t have to have any details, it’s just used as a tag in this case) and access it using jQuery’s style accessor. It’s not very often that I have to resort to this method but when I have had to style names were sufficient.

    // Will get the control with this specific style
    $(".YourControlsUniqueStyleName")
    

    EDIT:

    In your control add the following to the CssClass:

    <asp:TextBox ID="TextBox1" runat="server" CssClass="YourControlsUniqueStyleName"></asp:TextBox>
    

    Then with javascript using jQuery you can access the control with the css class name directly like so and read the value:

    var TextBox1Value = $(".YourControlsUniqueStyleName").val();
    

    Hope that helps.

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

Sidebar

Related Questions

How do I get ms-access to connect (through ODBC) to an ms-sql database as
How do i get access to a control (linkbutton in my case) that is
I need to get access to the iTunes tags in an RSS feed using
Is it possible to get access to the spell checker that is incorporated in
I'm trying to get access to a form and its elements. The form is
I get an Access is Denied error message when I use the strong name
How can I get programmatic access to the call stack?
I have a database which is in Access (you can get it link text
I'm trying to delete several working copy directories, but I get an Access Denied
I need to get a log of user access to our SQL Server so

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.