Validation Control

Today I was busy on a 'small' project which has links with a National Schools Census, well for use of technology in irish schools.

That's almost finish, but my experience on that will be next time:

- To develop a .Net tool to build the forms in HTML. That will let me more time to do more programming tasks and less basic HTML editing.
I have about 1000 checkboxes, Textboxes. and radiobuttons in this project.
So I love .Net but repeating hundreds of <asp: textbox ... is a painful process.
You have also to manually type all the proper ID, if you need to populate a database for statistics.

- To build a User Control to validate my controls by range, because I have to duplicate dozens of validator stuff, thing I don't recommend to my worst enemy !

So much time on repeating and boring tasks !

So Alex, if you are at the moment talking to god in Microsoft, give him my wishes for all of that !

 

1 Comment

  • Have you looked into storing the metadata in arrays, or xml, or whatever and then looping through the data and generating the controls at run-time?





    I did this quite a bit in ASP and ASP.NET, although just spitting out HTML rather than generation asp: controls for the latter. If you need asp: controls, there are methods to generate these dynamically. (I don't know them off-hand, perhaps someone else can comment).





    This also makes changing your layout a lot easier.


Comments have been disabled for this content.