Posted on: 7/23/2012 5:58:08 AM | Views : 218

Hi, I'm wondering, is it possible to make a fixed height textbox grow??

Because right now I have a script like this
function SettingHeightAttender(tbAttender) { tbAttender.style.height = tbAttender.scrollHeight + "px"; document.getElementById("<%=hdntbAttender.ClientID%>").value = tbAttender.scrollHeight + "px"; }

And i have a textbox like this
<asp:TextBox ID="tbAttender" runat="server" Columns="60" CssClass="tbNoScrollBar" onkeydown="SettingHeightAttender(this);" onkeyup="SettingHeightAttender(this);" Rows="1" TextMode="MultiLine" Height="100px"> </asp:TextBox>
This textbox will auto grow onkeyup and keydown. But it will automatically resize itself to rows = 1 to fit itself( if the textbox is empty)
So lets say I want a empty textbox of height 100px to allow user to input things, is it possible to ...

Go to the complete details ...