Hi Guys

I have 2 buttons on my we page one is to save and other button to view a list ,i have applied field validator to validate form fields , but when i click the list button also the required field validator is activating how can i stop that ?
i want required field validator to activate only when i press save button

thanks
regards
sumith

Member Avatar for diafol

If you show your code perhaps we'd be able to answer you. My crystal ball is cloudy.

Set the CausesValidation property to false on the controls you do not want to trigger validation. You can do it manually or use design view, click on the control, then properties view.

Hi Jorgem

Thanks, that solved the issue

regards
sumith

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.