I have an ASPX page (with VB Codebehind). I would like to extend the GridView class to show the header / footer when no rows are returned.
I found a C# example onli
As I said in my comment the code will not convert to VB.Net "magically". It will require working thru it to get it to compile properly.
The easiest would be to compile the the C# code as a library.
<%@ Register TagPrefix="Custom" Namespace="AlwaysShowHeaderFooter" %> with <%@ Register Assembly="AlwaysShowHeaderFooter" Namespace="AlwaysShowHeaderFooter" TagPrefix="Custom" %>Now you have split the control out to it's own project which can be referenced in any .Net project.