O
owingruters
Hi all,
I've created an User control. It's an extension of a textbox wich has
some extra properties so that validation becomes a lot faster.
The control wordks great if autopostback is on. When there's a value
in the textbox, the (overridden) textchanged event fires and
validation is performed.
Now I want to turn off autopostback. So I want my contol only validate
if the submit button is pressed. I've tried Page.Validate(), but It
seems only to trigger Validators. My control doesn't have to have
validators, but just raises an error.
So, I think the question is: how do I trigger the overridden
textchanged event of my custom control, preferably without writing
code in de click event of the submit-button?
Greetz,
Owin
Amsterdam
I've created an User control. It's an extension of a textbox wich has
some extra properties so that validation becomes a lot faster.
The control wordks great if autopostback is on. When there's a value
in the textbox, the (overridden) textchanged event fires and
validation is performed.
Now I want to turn off autopostback. So I want my contol only validate
if the submit button is pressed. I've tried Page.Validate(), but It
seems only to trigger Validators. My control doesn't have to have
validators, but just raises an error.
So, I think the question is: how do I trigger the overridden
textchanged event of my custom control, preferably without writing
code in de click event of the submit-button?
Greetz,
Owin
Amsterdam