Click here to Skip to main content
15,074,394 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i have a textbox in my webpage. i kept multiline property true.
but in the runtime i selected the textbox and dragged. it is expanding ,
so i dont want to expand the textbox even when i tried to drag. how can i set the textbox fixed.
help me in my requirement.
Posted

Set a style of "resize: none;" on it.
   
Try this code from (http://learnlogic.blogspot.in/2011/07/error-multiline-textbox-resizable-in.html[^]):
ASP.NET
<asp:textbox id="TextBox1" style="Resize:none;" textmode="MultiLine" runat="server" xmlns:asp="#unknown">
</asp:textbox>
   
Comments
kevin_ze 10-May-12 6:32am
   
I tried this but it shows an error
Resize is not an known CSS property name
use style="resize:none, width:yourwidth, height:yourheight".
set your width and hieght fixed.
Hope it will fix your Problem.
   

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