Re: Validating GUI

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

If you choose to validate immediately, you might have to validate OnSave/later also, since some values might be dependent on other, not yet entered information or is a more lengthy validation. For example, a validation against another system or a slow query etc.

//Carl

"Tony Johansson" <johansson.andersson@xxxxxxxxx> wrote in message news:XsAHl.8046$U5.89177@xxxxxxxxxxxxxxxxxx
Hello!

I just want your general opinion about validating GUI.

Assume you have a GUI with quite many controls and a save button.
What is the best practice to do when validating all the controls in the GUI.

One way is to validate when the Save button is hit.
Another way is to validate each Control while entering data into the different controls and as long as any control is invalid
keep the Save button disabled and when all the controls is valid you enable the Save button.

These are the two main alternatives that I think is the best.

//Tony


.



Relevant Pages

  • Re: RequiredValidator not working
    ... The submit controls call it in their OnClick method (which then fires your ... Click event handler). ... call individual validator's Validate() methods. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: RealBasic, is it ready?
    ... The Visual Basic converter supplied with RB is a dead loss. ... and with Oracle Forms and both these languages have a "Validate" event and I ... If you want to use container controls, and I have several in my program, ... and either way you only get 6 months free updates. ...
    (microsoft.public.vb.general.discussion)
  • Re: Custom validator for a pair of controls
    ... How can I validate these dates in server-side code, ... > you can check multiple controls with CustomValidator. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Problem w/ Validation in UserControl with 2 controls on the same p
    ... > I've created a WebUserControl which is Composite Control. ... > several controls including a few RangeValidator controls and a ... > I've set the RangeValidator to validate the TextBox for a range of Integers ... > - If I enter a valid number in the TextBox of 1 TestControl and an invalid ...
    (microsoft.public.dotnet.framework.aspnet)
  • Validations for controls on a panel not firing???
    ... I am having problems with controls on a panel not firing. ... are directly on the form will validate, but the controls on the panel will ...
    (microsoft.public.dotnet.languages.csharp)