Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Carolina Lopez   on Mar 08 In Asp.net Category.

  
Question Answered By: Adalwen Fischer   on Mar 08

Are you using TemplateColumn? If yes, you could put  validators statically
into EditItemTemplate with the TextBox and you wouldn't need to do dynamical
adding of validators in that case.

About maximum  length, by default such validator does not exist, but TextBox
has MaxLength property that you can use to set the maximum allowed length.
Although I am not sure how it behaves with other browsers than IE. It's not
hard to create custom validation control or CustomValidator to validate the
input length either.

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Required field validators for a datagrid Or get search suggestion and latest updates.


Tagged: