Click here to Skip to main content
16,018,460 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am wondering if this is possible, if so how?
I have a Details view which I use to Insert and Edit fields in the SQL Server database. I have create simple function which goes through the array of the fields and then checks none of them are NULL, but I also was to check that they will not exceed the length of field the database can accept.
Is there a way to retrieve this information somehow?
Then I can check that the entered field length is less than that of the database. If not any other ideas
How I can do this?
How i can do Server Side validation?
Posted
Updated 22-Jul-10 23:17pm
v2

How to client side validate in c# vs 2005 for email Address input, thank's.
 
Share this answer
 
You need to use regularexpressionvalidator to check the length of the data entered into the fields.
 
Share this answer
 
You should restrict the maximum length in time of entry itself. However you will find the details of columns in INFORMATION_SCHEMA.COLUMNS object.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900