Jump to content

MaxLength não funciona


WoOo
 Share

Recommended Posts

Viva!

Tou aqui com um pequeno problema...estranho já agora...

Tenho duas textbox's, uma para um campo nome e outra para um campo descrição. No campo nome o maxlength funciona correctamente e está a limitar-me a 5o caracteres:

<asp:TextBox ID="Name" runat="server" Width="450" MaxLength="50"  OnPreRender="Name_OnPreRender"></asp:TextBox>

No campo descrição, estou a limitar a 250 caracteres mas bem posso ultrapassar esse limite...

Nesta textbox porem estou a usar outra propriedade que é TextMode="MultiLine", será que é por isto?

<asp:TextBox ID="Description" runat="server" Width="450"  TextMode="MultiLine" MaxLength="250" Height="60px" OnPreRender="Description_OnPreRender"></asp:TextBox>

Se alguem fizer ideia como contornar o problema...

Abraço

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.