Search code examples
asp.netajaxgridviewupdatepanel

Gridview within an UpdatePanel does not render in the DOM


I'm using the ASP net Ajax toolkit and have a GridView within the UpdatePanel, everything works fine.

When I attempt to run some JQuery against the table that should be generated, there isn't any sign of the GridView (or table HTML) in the DOM that is returned. I am assuming this is all done by ASP generated Javascript?

How can I perform any actions on a GridView that lies within an UpdatePanel?


Solution

  • ASP.NET will mangle the names for controls under certain conditions. You may want to look at the generated source to make sure that you are referencing the control by the name given it by ASP.NET when it is generated. It probably isn't the name you gave it in the mark up.