Rob Bell

Posts tagged with "C#"

Server-side ValidationGroup switching

Often when validating a page in ASP.NET there’s the need to switch between ValidationGroups. A good example is a shopping cart where the user can choose to have products delivered to the account address or enter an alternative address, all within one page submission. If the user chooses to use an alternative address we need to validate that the required fields for the new address have been completed; if they decide to use their existing address then we need to validate that instead.

Continue reading...