• Advertisement
Sign in to follow this  

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

This topic is 4264 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
This should get you started...

http://www.codersource.net/asp_net_web_user_controls.html

theTroll

Share this post


Link to post
Share on other sites
Thank, but thats not the thing im looking for. Actually, this is, what im trying to avoid :(

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
ahhhh thats it!! in the afternoon a try that! nice!!!!

a really big THANK YOU for that! :)

Share this post


Link to post
Share on other sites
hmm. im unable to load the dll i compiled. where should i copy it to?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement