When you override a method, you should almost always call the base class
method as well:
Protected Overrides Sub CreateChildControls()
Controls.Add(New LiteralControl("<b>kkkkkkkkkk</b>"))
MyBase.CreateChildControls()
End Sub
--
John Saunders
John.Saunders at SurfControl.com
"popman" <ne****@sohu.com> wrote in message
news:O1*************@TK2MSFTNGP12.phx.gbl...
I develop a class which inherits textbox class.and I override the
CreateChildControls method like code below:
Protected Overrides Sub CreateChildControls()
Controls.Add(New LiteralControl("<b>kkkkkkkkkk</b>"))
End Sub
But it didn't work.What's the problem?
Thanks.