TextArea Length ???

S

Samir Patel

Hi
I am using Textarea type.I want to set maximum length to the textarea.
I am using following code for the same,but it is not working,

<textarea name="txtDescription" cols=10 rows=3 axlength=50></textarea>
<asp:TextBox Font-Names="verdana" Runat="server" ID="tforumtext"
TextMode="MultiLine" Height="100" Width="300" Font-Size="10"
MaxLength="100">
</asp:TextBox>

But it is not working,it
Help me in the same

Samir (S.E INDIA).
 
S

Scott Allen

Hi Samir:

Your TextBox control sets the TextMode to MultiLine but does not set
the Rows and Columns properties. The TextBox will render as a
textarea, you don't need the HTML textarea control here.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top