Mega Code Archive

 
Categories / ASP.Net Tutorial / Custom Controls
 

Creating the templated controls inner control class (VB)

Public Class Message     Inherits System.Web.UI.WebControls.Panel     Implements System.Web.UI.INamingContainer     Private _name As String     Private _text As String     Public Sub New(ByVal name As String, ByVal text As String)         _text = text         _name = name     End Sub     Public ReadOnly Property Name() As String         Get             Return _name         End Get     End Property     Public ReadOnly Property Text() As String         Get             Return _text         End Get     End Property End Class