I’m currently working on an ASP.NET site created by someone else. There is this GridView that I want to have a static header for. To do this, I need to know the ID of this control so I can manipulate it using Javascript. The ID is set in the .ASPX file (ie. <asp:GridView ID="GridView1">). However, when I look at the generated HTML, the table corresponding to the GridView has no ID tag! It just appears as <table> with some other attributes. Is it possible that the ID was suppressed somewhere else in the code?
Thanks
Make sure the tag also includes runat=”server” and set the ClientIDMode=”Static” so the ID isn’t changed by ASP.NET: