Validations

G

Guest

Hi,

I have to do some validations related to various fields on the server.
I cannot use the .net Validation controls.
On page load I call my validation function. If it returns false I need to
send back the page without continuing with the other event handlers.

How do I do this?
 
G

Guest

Add a private variable (let's say IsPageValid) and set it to false then in
every event handler check first If IsPageValid Then...<do the event
handling>... Else Return.
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top