Finding Controls inside Accordian in javascript

Last post 06-02-2009 2:52 AM by Vince Xu - MSFT. 2 replies.

Sort Posts:

  • Finding Controls inside Accordian in javascript

    05-31-2009, 10:45 PM
    • Member
      1 point Member
    • dgdevloper
    • Member since 05-31-2009, 7:05 AM
    • Posts 3

    Can anyone help me with the javascript to find textbox or other asp.net server controls inside AJAX Acordian Control?

     

    Thanks & Regards

  • Re: Finding Controls inside Accordian in javascript

    05-31-2009, 11:21 PM
    Answer
    • Contributor
      7,249 point Contributor
    • whighfield
    • Member since 01-02-2006, 10:37 PM
    • Winterpeg, Manitoba
    • Posts 1,205

    See this post for a sample on using jQuery to find asp.net elements

    http://forums.asp.net/t/1428350.aspx

    Please mark the most helpful reply/replies as "Answer".

    - William
    http://thefrozencoder.ca
  • Re: Finding Controls inside Accordian in javascript

    06-02-2009, 2:52 AM
    Answer

    Hi,

    You can use document.getElementById('htmlControlid') to get the control on page.

    If the control is server-side, you can use document.getElementById('<%=control.ClientID%>').

    In ASP.Net Ajax, you can use $get('') to replace document.getElementById('').


    Vince Xu
    Microsoft Online Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (3 items)