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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:22:56+00:00 2026-05-13T09:22:56+00:00

I have a serverside dropdownlist and I am accessing it’s id in jquery like

  • 0

I have a serverside dropdownlist and I am accessing it’s id in jquery like this

$(‘#<%=ddldropdownlist.clientID%>’)

I have a asp:LinkButton inside a gridview and I want to access it’s client ID.

when I do as above in jquery it doesn’t work

I think that’s not the correct way since the server control is inside another server control

Could someone please help

  • 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-13T09:22:56+00:00Added an answer on May 13, 2026 at 9:22 am

    You have a few of options:

    The most common would be to assign a custom class or attribute to the button that you can use as a selector.

    The other way would be to implement the OnDataBinding event for the button and then assign the ClientID of the control from the OnDataBinding sender to your Jquery call in this function for each control assuming you are trying to hookup some Jquery to your button.

    You could also use the OnDataBinding method to build up a hidden field with a list of ClientID names.

    The best solution is probably to get a selector working but there are cases where the OnDataBinding works great as well.

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

Sidebar

Related Questions

I have an asp.net dropdown like this <asp:DropDownList width=95% ID=RessourceComposantes runat=server DataSourceID=Composantes DataTextField=Description DataValueField=ComposanteID>
I have a gridview with dropdownlist in it. When the user changes the item
I have a asp:textbox with a OnTextChanged event that I want to fire when
I have an ASP.net page which contains some controls. I generate this controls by
i have javascript code that looks like this: $('#lnkPopup').click(function() { var id = $(this).attr('rel');
I have an asp.net form which contains a dropdownlist which posts back to the
I have a gridview in an updatepanel where also my dropdownlist is. From the
I have used this: Generate Google Analytics events (__utm.gif requests) serverside and this: http://www.garyrgilbert.com/blog/index.cfm/2008/10/21/Tracking-Digital-Content
I have a dropdownlist with the autopostback set to true. I want the user
Have a look a http://mirror.me/fzmvdr8e I believe this is java code on the serverside.

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.