.NET WebControl: TextBox with counter
Came across a need for a TextBox control with a countdown counter. Since I couldnt find one that would fit my requirements I decided to write one up.
It is in a very basic format at the moment and there is quite a lot that can be done with it. Feel free to improve, enhance, extend it.
Here is a screen shot of what it looks like:
It is a very handy control to have. You can use it in all three of the TextBox mode’s i.e. SingleLine, MultiLine, Password.
You can get the control and source code from here:
Below is an example of how you can use this WebControl:
protected void Page_Load(object sender, EventArgs e)
TextBoxWithCounter tbwCounter =
new TextBoxWithCounter(200, 5, 25, TextBoxMode.MultiLine);