I have adopted some ASCX single page code which I want to convert to use CBH files for VB.NET code. The process I use to do this is to set the @Control directive as follows:
<%@ Control inherits="" codebehind="header.aspx.vb"%>
I save the file. I then right click on it in solution explorer and select 'View Code'. The CBH is then generated, but without the Server Control definitions. So I have to add them manually :
Protected WithEvents signInOutMsg As System.Web.UI.WebControls.LinkButton
<asp:linkbutton style="FONT: 8pt verdana" id="signInOutMsg" runat="server" />
Any ideas please.