Using CustomValidator to valid url QueryString

M

Martin

Hi,

Because I need this validation without a postback occuring, I call
Page.Validate from the Page.Load event handler. The corresponding
ServerValidate event handler is called, and as this finishes the
CustomValidator.IsValid is false. However on returning to Page_load, the
CustomValidator.IsValid is true again!!

What's wrong?

Thanks
Martin
 
M

Martin

I was setting the validator control directly, not setting ServerValidate
event args.IsValid.

Makes me wonder how I should set the error message text, if I shouldn't
manipulate valdiator control directly in servervalidate event handler.

??
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top