RicksAtWork
Programmer
I have a class called user
within the accessors of this class I have validation to ensure the format of the data is correct.
In my web UI i pass data from the web controls to these accessors. If there is an error with the data I want to highlight the control. I am thinking of throwing an event in the accessor if an error occurs - this will contain an error message.
I want to map the message to the correct control. How should I do this?
within the accessors of this class I have validation to ensure the format of the data is correct.
In my web UI i pass data from the web controls to these accessors. If there is an error with the data I want to highlight the control. I am thinking of throwing an event in the accessor if an error occurs - this will contain an error message.
I want to map the message to the correct control. How should I do this?