----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: Dolly Message 3 in Discussion Hi, I found this on a newsgroup :http://www.dotnet247.com/247reference/msgs/13/66065.aspx Hello, When you set the TextMode attribute to "Mulitline", the control will be rendered as an HTML "TextArea". In HTML, "TextArea" does not have a Maxlength property, so that is why you are seeing this behavior. Unfortunately, there is no way to set such a property unless we leave the TextMode as SingleLine or Password. Here is a simple way to get around that by using client-side javascript for your sample: <script language=vbscript for=txtMore event=onkeypress> x = len(Form1.txtMore.value) + 1 If x >= 200 Then msgbox "Character Limit Reached!" Form1.txtMore.value = left(Form1.txtMore.value, 199) End If </script> There may be other ways. I hope this helps! mgraham ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
