Link to home
Start Free TrialLog in
Avatar of dreamchaser23
dreamchaser23

asked on

What should be the ideal behavior of a ASP.NET page when Refresh button is clicked?

Hi all,
Scenario: If there is a dropdownbox having the three values: "Add, Subtract, Multiply" and there is a Checkboxlist with the same 3 values. If the user selects "Add" option in the dropdownlist, then the item "Add" in the Checkboxlist needs to be removed. If the user selects "Subtract" option in the dropdownlist, then "Add" item should be added to the checkboxlist and "Subtract" item needs to be removed.

In this scenario, assume that the user selected "Add" option, and "Add" option in the checkboxes gets removed accordingly.  Now if the user clicks on Refresh button, the "Add" checkbox also gets displayed in the page. Is this correct in the real world when the user clicks on Refresh button? Or should the option selected by the user should be maintained?

Just to clarify:
I would like to know if the option chosen by the user (for eg: any option in a RadioButton or Listbox or DropDown or in the example scenario above) should be maintained in the view state and display the options exactly chosen by the user when the "Refresh button" is clicked? Or is it fine to clear the values?

Would really appreciate any feedback from you guys.
Thanks,
DreamChaser
ASKER CERTIFIED SOLUTION
Avatar of VincentPuglia
VincentPuglia

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dreamchaser23
dreamchaser23

ASKER

Hi Vincent,
Thanks a lot for your comment. Alrite, I am gonna just ignore this behavior.
Yes, Vincent, the user can manually select a few options! (Is this what you are not sure, I am sorry, I dont get this part of your comment.
<quote VincentPuglia>
Based on what you say above, I'm unable to tell if the user can manually select/check options so that all of the selects/checkboxes are unselected.
</quote>
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Vincent,
Many thanks for your comment.

No, I wasnt talking about preferences.

Just the web controls/selections.

Now that you've told me your point of view as an user, I would take that as an OK from UAT :)

Alright, so let me not worry about this anymore.

Thanks again for explanation and telling what you'd prefer.

Have a nice day,

DreamChaser
no prob & you do the same :)
Thanks Vincent.!
I've graded your excellent soln Vincent.
Thanks once again!! :)