Lions Den

The Code and Times of Hanan Schwartzberg

About Hanan | Hanan's CV | Contact Hanan

April 1, 2009

Validate Multiple ValidationGroups on One Page

Filed under: ASP.NET,Client Side — Tags: , , , — Hanan Schwartzberg @ 3:37 pm

Scenario

A page has multiple validation groups:

  • vgPrimary
  • vgMain

The submit button on the page is a member of vgMain, so automatically it will only run the validation on that group. A solution is needed that will run validation on multiple groups and block the postback if needed.

(more…)

Home | Site Design | Banner Design | Code Den | Offsite Posts | Downloads | Photography | About Hanan | Hanan's CV | Contact Hanan
Copyright © 2009 Hanan Schwartzberg. All rights reserved.