Simplest user control (VB.net)
<%@ Page Language="VB" %>
<%@ Register TagPrefix="MyTag" TagName="SimpleControl" Src="SimpleUserControl.ascx" %>
<html>
<head>
<title>Simple User control Example</title>
</head>
<body>
<form runat="server">
<p>
<MyTag:SimpleControl id="MySimpleControl" runat="server" />
and I'm text in an ASPX page.
</p>
</form>
</body>
</html>
<%--SimpleUserControl.ascx
<%@ Control Language="vb" %>
<b> Hello, I'm a user control, </b>
--%>
Related examples in the same category