I have an .aspx form and in the Page_Load event I assign several values to controls (Textbox, DropdownList, etc.) from the database, however I have a Textbox control where it is possible that the text is very large or very small, it is here where I would like to know if it is possible to make the textbox size dynamic.
When the form finishes loading the Textbox control it is displayed like this:.
But I would like to visualize it like this (everything depends on the text):
Textbox Code:
<asp:TextBox runat="server" ID="txt" TextMode="MultiLine" Height="80px" ReadOnly="true" CssClass="form-control"></asp:TextBox>
I am using .NET Framework 4.5.2, I am not sure if I should use any functionality from jQuery and if so, how would it be done?