I have a regularexpressionvalidator attached to a textbox in a usercontrol. I add the usercontrol dynamically to my page. It works fine.
However, if I add the usercontrol multiple times to my page (so let's say my page has the usercontrol on it 4 times) then when the regularexpressionvalidator in one of the usercontrols is triggered it gives me the message 4 times (since that's how many times the usercontrol is on the page) even though I'm just messing with one of the usercontrol.
Does anyone know how to fix this?
However, if I add the usercontrol multiple times to my page (so let's say my page has the usercontrol on it 4 times) then when the regularexpressionvalidator in one of the usercontrols is triggered it gives me the message 4 times (since that's how many times the usercontrol is on the page) even though I'm just messing with one of the usercontrol.
Does anyone know how to fix this?