Using ASP and ADO we can limit the length of a user entry dynamically, based upon the field length being addressed. You could also hard code it but that is impossible to deal with in our environment as everything is in a state of change or about to be changed!
Now with ASP.NET and ADO.NET I would like to do something similar. In ASP/ADO to the code of say a text box you would add:
Maxlength = “< %=oRS.fields(“Date”).definedsize % >”
Can this be accomplished with ASP.NET/ADO.NET? I could just set the maxlength of the object but that is my last choice.
Any suggestions?
Tom