Rules

Secret ingredients to quality software

Edit
Info

Do your controls autopostback?

Last updated by Rebecca Liu on 19 Feb 2015 02:01 am (about 6 years ago) See History

When visitors are navigating through your site and they need to make a selection from a control with fixed values, it is best to have the control automatically post back. This makes navigating your site quicker as the user does not have to click other buttons to see the changes which they have made. It is also important to remember that controls which do not have set values, such as text boxes, should have a "Show" button available to click once the visitor is finished entering their data.

Figure: Bad Example - because the combos can be set to autopostback and should not have a "Show" button.

Figure: Good Example - because the combo boxes have fixed values and can autopostback.

Figure: Bad Example - because the text boxes do not have fixed data and thus should have a "Show" button.

Figure: Good Example - because there is a "Show" button as the text boxes do not contained fixed data.

Figure: Good Example - because the combos can be set to autopostback while the text boxes have the "Show" button available.


We open source. This page is on GitHub