Disabling theming for properties in your custom controls
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
{
publicclass SimpleHello : Control
{
private string _myValue;
[Themeable(false)]
public string Name
{
get { return _myValue; }
set { _myValue = value; }
}
}
}