VB version
Imports System.Web.UI
Namespace ServerControls
Public Class SimpleHello
Inherits System.Web.UI.Control
Private _myValue As String
<Themeable(False)> _
Public Property MyCustomProperty() As String
Get
Return _myValue
End Get
Set(ByVal Value As String)
_myValue = Value
End Set
End Property
End Class
End Namespace
C# version
using System.Web.UI;
namespace ServerControls
{
public class SimpleHello : Control
{
private string _myValue;
[Themeable(false)]
public string Name
{
get { return _myValue; }
set { _myValue = value; }
}
}
}
|