Search code examples
javascriptajaxcontroltoolkit

How to access a control inside an ajaxmodalpopup in javascript?


Inside an Ajax popup I have a GridView.

I want to access the GridView from javascript.

As it is inside popup I am unable to use document.getElementById

I used document.GetElementsByTagName and accessed popup in javascript.

How to traverse to the gridview inside that popup?


Solution

  • Can't you just use something like:

    document.getElementById('<%= YOUR_GRIDVIEW_ID.ClientID %>')
    

    ?