Hi All,
in my application, I am using textarea html control to display large text. I have to make this as readonly, so I am setting its 'Disabled' property 'true'. My problem is when content to show is larger than the textarea it does not show vertical scroll bar. I am setting overflow property to auto also but no luck. can someone please help me ?.
Thanks,
Amit
Don't disable it, set it ReadOnly... you'll have to do some funky coding, probably with Javascript.
Otherwise, have you looked at any other controls? Like a multiline <asp:Textbox...> control?
If you are using an asp:textbox, you need to put in this attribute,
TextMode="MultiLine"
So it would be something like,
<asp:TextBox ID="TextBox1" TextMode="MultiLine" runat="server"></asp:TextBox>
Thanks Curt. It is working. I added following line in code behine and it works
this.txtArea.Attributes.Add("readonly","true");
0 comments:
Post a Comment