I have created a custom control that returns an SqlConnection object. This is in a .ASCX file.
Can I reference this control from inside a .VB code-behind file? Currently, I am referencing it in the .ASPX file via:
Can I reference this control from inside a .VB code-behind file? Currently, I am referencing it in the .ASPX file via:
Code:
<%@ Register TagPrefix="MyTag" TagName="Ctrl" Src="controls\Connection.ascx" %>
<head>
<MyTag:Ctrl id="MyConn" runat="Server"></MyTag:Ctrl>
</head>