Index :: Anarchy in the VM
[Article No. 17 @ 2007-10-19]
As a .NET developer I really love Microsoft Visual Studio 2005. I use it in order to develop
the main framework used by my company allowing us to produce electronic
CRF for our customers.
In order to create dynamic forms, I really don't use the VS Toolbox, but I instance the WebControls
at runtime. At runtime I create all the needed objects and setup all properties and event handlers; in this
way it is possible to write this kind of code:
TextBox age = new TextBox();
age.ID = "PATIENT.AGE";
agePlaceHolder.Controls.Add(age);
After that it's possible to add any kind of
Validator to the created dobject.
Running this sample code (with the validator object added) in Windows and IIS all goes right;
trying to run the same code on Mono/Apache I received some error.
The help comes from Visual Studio iteslef. If you try to set the ID property of an object in the Property
Window you will receives the following:
Bingo ! It's not possible to use some special characters in the
ID property of an object. The strange thing
is that the error raise only when running the code on Mono/Apache andnothing happens with IIS.
I'll never stop to learn !!
Available commets