Thank you Ashish for your reply. This approach was suggested to me, but
to my specific purpose I have found that it is a little complicated. I
thought that inheriting from webcontrol would be very similar to
inheriting from usercontrol. My problem was solved by inheriting from
usercontrol instead. I guess inheriting from the webcontrol class is
not very usefull, unless I want to inherit from a specific webcontrol,
like textbox, and utilize the base functionality. But obviuosly
inheriting from the general webcontrol class does not give any
particular advantage that I am aware of over inheriting from user
control.
|