<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Automatic Resize TextBoxtitle> <script type="text/javascript"> function setHeight(txtdesc) { txtdesc.style.height = txtdesc.scrollHeight + "px"; } script> head> <body> <form id="form1" runat="server"> <asp:TextBox ID="txtDesc" runat= "server" TextMode="MultiLine" onkeyup="setHeight(this);"onkeydown="setHeight(this);" /> </form> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)