Click here to Skip to main content
15,887,821 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to set height to TextBox dynamically as per the content fetched from the database in asp.net with c#

What I have tried:

Tried a div with style="height:auto" and set the Textbox with in the same but height is not resizing.
Posted
Updated 26-Apr-17 7:49am
Comments
ZurdoDev 26-Apr-17 9:28am    
You'll have to calculate it on your own using the Font size.
[no name] 26-Apr-17 9:48am    
The data is being binded from the DataBase and as per the data size, height of the TextBox must grow.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900