Chapter 15 Webcontrols
I am having some difficulty on this example
on page 528 I set the BackColor property to purple
<uc1:NavBar id="MyNavBar" backcolor="purple" runat="server"></uc1:NavBar>
When I view it in the browser it still comes out red. How could I get this to work. I can't seem to figure this out. Below is the code that page 527 and the top of page 528.
Thanks
Protected _BackColor As Color = ColorTranslator.FromHtml("#cc0033")
Public Property BackColor() As String
Get
Return ColorTranslator.ToHtml(_BackColor)
End Get
Set(ByVal Value As String)
_BackColor = ColorTranslator.FromHtml(Value)
End Set
End Property
|