Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/04/2005, 11:14
Avatar de RootK
RootK
Moderador
 
Fecha de Ingreso: febrero-2002
Ubicación: México D.F
Mensajes: 8.004
Antigüedad: 22 años, 3 meses
Puntos: 50
Porque no lo haces con javascript ?

Te podría quedar así:

dentro del head:

Cita:
<script language="javascript">

function checklength()
{

var max = 10;
var txt;
txt=document.getElementById('TextBox1');
var n = txt.value.length;
if (n>max) //i is the maxlength of textarea which we have set to 80
{
txt.value = txt.value.substring(0, max);
return false;
}
}
</script>
y en tu textarea algo así:

Cita:
<textarea name="TextBox1" id="TextBox1" onkeydown="javascript:checklength()" >
Salu2
__________________
Nadie roba nada ya que en la vida todo se paga . . .

Exentrit - Soluciones SharePoint & Net