This code should work but does not. I populate a session variable with a GridView that has been binded to a populated datatable. Then I simply call this session variable in the code attached in the screenshot and an error gets thrown at gvs.RenderControl(htmlWrit
e) stating that the GridView needs to have a form tag of runat=server..? That doesn't make any sense to me because the "Markup" of my webpage does have <asp:GridView ID="GridViewL" runat="server">
Can someone please help me..?