I want to create custom Textbox control in asp.net.But i have one doubt when i override the base method i got predefined syntax something like this
base.OnRender(writer);
Now my question is that from where I should start witting the code means before Base.OnRender or after base.OnRender.
If you don’t want the base class behavior to occur at all, you should delete the line.
Whether you should write your code before, after or in between depends on the semantics of the call and method (that is, what the base method does and what you want to do in the overriden method).
For example, if you want to inject HTML before the HTML of the base class, you will add your code before. If after, you would write your code after. If you want to wrap the HTML in yours, you would write code before and after.