R
rn5a
While creating a custom control, what is the difference between
Public Class MyCls : Inherits Control
&
Public Class MyCls : Inherits WebControl
Also when should the sub Render be used & when should the sub
RenderContents be used?
Also does it make any sense in using the sub AddAttributesToRender if
the class is being inherited from the WebControl class since the
WebControl class will always render a <span> element?
Public Class MyCls : Inherits Control
&
Public Class MyCls : Inherits WebControl
Also when should the sub Render be used & when should the sub
RenderContents be used?
Also does it make any sense in using the sub AddAttributesToRender if
the class is being inherited from the WebControl class since the
WebControl class will always render a <span> element?