Ehsan was telling me about the litte, simple and useful control. All of us already seen that control in facebook chatting window. that textboox automatically bacome bigger according to the text written in the textbox.
Here is the demo of that JQuery http://www.aclevercookie.com/demos/autogrow_textarea.html
I have tested that in asp.net TextBox it works. Here is my code in asp.net for auto growing textbox.
You should download JQuery and JQuery Auto Grow to use it.
<script type=”text/javascript” src=”jquery-1.3.2.js”></script>
<script type=”text/javascript” src=”jquery.autogrow.js”></script>
<script type=”text/javascript”>
$(document).ready(function() {
$(‘.expanding’).autogrow();
});
<style type=”text/css”>
.expanding {line-height: 18px;}
</style>
<asp:TextBox ID=”myTxt” runat=”server” CssClass=”expanding” AutoPostBack=”false” TextMode=”MultiLine”></asp:TextBox>


Pretty awesome!
I was looking for that for some days and now I’ve got it. My only issue is that if the user doesn’t use a linebreak and writes its text continuely for more rows, the multiline textbox doesn’t grow. :-/
Solution to Christof’s problem:
http://forums.asp.net/p/1480315/3460932.aspx#3460932
Thanks to Ashraf for being in the chain that made that solution possible.
copying and pasting text into the textbox that has a tab character (from wordpad for example) causes it to continually resize and bounce. any fix for this?