Today while working on adding tagging to items, I came across an issue with the auto complete control extender available in the ASP.Net AJAX Control library.
If you’re looking for an easy way to apply a max length to an ASP.Net multiline text field, I’ve written a control extender that is compatable with IE, and Firefox. It uses .Net 3.5, and you’ll need to go here and grab the toolkit. Once you’ve done that, head here to grab the extender. Put a reference to the toolkit in your project, then reference the assembly I’ve provided.
Now all you should need to do is add the extender as per any normal extender. Set a max length for your text box, and you should be good to go!
If you’ve got any comments, suggestions, improvements or even ideas for other controls leave a message on the codeplex page, or here on the blog.
As mentioned in my previous post it’s been quite a while since I last had the fortune to work on a web application. Today I discovered another gotcha for young players in the web world when trying to set the MaxLength property of a TextBox control. Normally this works fine, but if you combine this with settinig the style to MultiLine the world changes. Continue reading