
cualquier ayuda me seria muy util ....
| |||
Contar letras sin hacer autopostback en asp.net ![]() cualquier ayuda me seria muy util .... |
| ||||
En esos casos usamos nuestro friend javascript ![]() Te paso un ejemplo: En tu html: Cita: Y voy a usar un input type=text comun y corriente y otro para mostrar el contador.<script language="javascript"> function textCounter(field, countfield) { countfield.value = field.value.length; } </script> Cita: Si manejas un htmlcontrol solo es cosa de asignarle attributos en tu pageload y listo <input type="text" name="txt" onKeyDown="textCounter(this,this.form.txtcopy);" onKeyUp="textCounter(this,this.form.txtcopy);"><br > <input type="text" name="txtcopy"> ![]() De todas formas te lo muestro: Cita: txt.Attributes.Add("onKeyDown", "textCounter(this.form.txt,this.form.txtcopy);") txtContent.Attributes.Add("onKeyUp", "textCounter(this.form.txt,this.form.txtcopy);") Salu2 ![]()
__________________ Nadie roba nada ya que en la vida todo se paga . . . Exentrit - Soluciones SharePoint & Net |