I am planning to create/use a webcontrol , the behaviour of this control should be in such a way that , it should act as a button or Image button based on the client using that control. I mean if the client wants to use that control as ImageButton it should expose him properties of Imagebutton control like (Image Src, image align etc..), if he wants to use that control as Button it should expose him only button properties and it should not expose any Imagebutton related properties. is it possible to implement such control? i guess i can try generics, but really i am not sure whether i can use generics to solve this problem. or there any other alternatives other than Generics..?
View Complete Post