One trick you could use would be to apply a style to a regular textbox and set 
the height and width to the desired values and add the maxlength property:
 
<html>
<head>
<style>
.FakeTextArea {
HEIGHT: 200px;
WIDTH: 150px; 
}
</style>
</head>
<body>
<input type="text" class="FakeTextArea" name="txtTextArea" maxlength="3">
</body>
</html>
 
This gives the appearance of a textarea, but it's really a textbox that you 
control using CSS.  Just be aware that all browsers may not support the height 
and width in CSS the same way. 
 
And don't forget to add server-side code to check the length of the "textarea" 
value.
 
Mark

Nikhil Khandelwal <[EMAIL PROTECTED]> wrote:


I want to restrict input in textarea upto some characters. In case of 
TextBox, maxlenght is available. But for TextArea which property/ 
method i should use to do so. Please tell me as soon as possible.








---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
  
   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to