Font.Text overridable?

  • Thread starter Thread starter Duron
  • Start date Start date
D

Duron

I am writing a Custom Server Control and I'm wondering if I can override
Font.Name or Font.Color etc. just like I can override Text?

Thanks!
 
What base class are you using? If its Control then Font won't be available
to override. You need to inherit from System.Web.UI.WebControls.WebControl
 
Thanks for the hint. I created a Custom Server Control and it inherits
Hyperlink. But I don't know how to inherit WebControl and make it work as
Hyperlink... Do you know how to do it or where I can find a tutorial or
example? Thank you.
 
Back
Top