Field min lenght

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
MatteoAllix
User
Posts: 117

Field min lenght

Post by MatteoAllix »

Hello,

is it possible to insert controls on the inserted value in a field?
Specifically: if the field is valued, then it must be 11 characters in length.

Thanks,
Matteo.


MatteoAllix
User
Posts: 117

Post by MatteoAllix »

Hello,

solved, i've put this in Row_Inserting and Row_Updating:

if (rsnew["PIVA"].ToString() == "")
{ }
else if (rsnew["PIVA"].ToString().Length < 11)
{
CancelMessage = "Il campo P.IVA se inserito deve avere almeno 11 caratteri";
return false;
}


Post Reply