Expandable or Auto-Resize TextBox Height
Posted
on Dot net Slackers
See other posts from Dot net Slackers
Published on Sun, 30 May 2010 00:00:00 GMT
Indexed on
2010/05/30
10:12 UTC
Read the original article
Hit count: 454
Filed under:
Recently, I was asked to prepare a Facebook like expandable textbox in a ASP.NET web application, where user can input text and the textbox can be re-sized (more specifically the height) dynamically.
I searched for a while and found quite a lot of solutions that use jQuery (example). However, I was looking for something more intrinsic and simple, and finally I found another script on a forum that just use few lines of JavaScript codes:
1. Control declaration:
<asp:TextBox ID="txtMsg"...
Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
© Dot net Slackers or respective owner