Adding a Web Control Library to a Web page
<%@ Register Assembly="ClassLibrary1" Namespace="ClassLibrary1" TagPrefix="cc1" %>
Adding a Custom Web Control
File: WebCustomControl1_1.cs
Imports System.ComponentModel
Imports System.Web.UI
{0}:WebCustomControl1>")>
Public Class WebCustomControl1
Inherits System.Web.UI.WebControls.WebControl
Dim _text As String
_
Property [Text]() As String
Get
Return _text
End Get
Set(ByVal Value As String)
_text = Value
End Set
End Property
Protected Overrides Sub Render(ByVal output As System.Web.UI.HtmlTextWriter)
output.Write([Text])
End Sub
End Class