Sign in to follow this  
orbano

[.net] ASP.NET + Custom (inherited) control

Recommended Posts

Hi! I want to create and use a custom web control, that is derived from, fro example, the built in Button class. How can i do that? I've written the class: public class menuButton : Button { ... } but i can find no way to insert it into my web form. How should it be done? i was trying to create a user web control, but that looks too complicated for me... and it does not let my custom control be derived from any existing controls, but the Page or UserControl classes ... During this project i will have to create many user controls, which are simply modifications of existing web controls. Thanks in advance!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
How about this: http://www.codeproject.com/aspnet/textboxwithvalidator.asp

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this