Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom Validator...

Status
Not open for further replies.

bartee

MIS
Mar 20, 2005
147
US
I have a custom validator on my webform and the validator is in a gridview for the edit command.

Currently, it's calling a server-side validation function and correctly validating the row before edit.

I would like to change the error message at runtime but cannot seem to figure out how within the validation logic. Basically, I want to determine the error message at the time the validation is run.

Any suggestions are greatly appreciaed.

Thanks in advance.
 
>>I would like to change the error message at runtime but cannot seem to figure out how within the validation logic

as in the server side function right???

Known is handfull, Unknown is worldfull
 
yes. I would like to change the error message text for the custom validator at runtime -- from the server side function.

The custom validator is within the edit item template of a gridview.

Thanks for the reply.
 
if i am correct there will be a sender parameter in the custom validtor code, that will be the reference object for you. convert the sender into the custom validator ans see what happens...

Known is handfull, Unknown is worldfull
 
welcome...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top