adwaitjoshi
Active member
- Joined
- Dec 29, 2005
- Messages
- 38
- Programming Experience
- 1-3
I have a text box named txtName I have a label corresponding to it named lbl_txtName. I have a much wider collection of such items. BAsically what I want to do is if the user doesnt enter anything in the textbox, then label text lbl_<NAME OF THE CONTROL> should be made red. I look through my controls list when the user clicks save. Is there anyway to dynamically get a handle to this control by passing the name of the control?