0

I want to implement the own custom TextBox control in Asp.Net(C#). Please give me some idea and links.

3
  • 1
    Step ask a question that is more specific. Commented Jan 25, 2010 at 19:50
  • what do you mean? you want to create a TextBox control from scratch (as a Custom Control)? you have something you want to add to the existing TextBox control? Commented Jan 25, 2010 at 19:53
  • @statichippo:I want to create TextBox control from scratch. Commented Jan 25, 2010 at 20:04

2 Answers 2

3

A control is simply a class. Create your own class deriving from the TextBox class. Override methods. Handle events. Add properties.

And then ask a specific question, and you'll get specific answers. Do a search on this site and you'll find recommendations for books on control development.

You'll also find http://asp.net to be of use.

Sign up to request clarification or add additional context in comments.

Comments

0

If you want to create a TextBox control from scratch, you can just create a CustomControl (msdn: http://msdn.microsoft.com/en-us/library/zt27tfhy.aspx) that outputs a textbox:

<input type="text" />

Obviously you'll want to add properties like length and css styles. For an existing control like a TextBox I can't really imagine why you wouldn't just inherit from TextBox to add the extra functionality you want though -- why reinvent the wheel? But if that's what you want to do...

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.