Accounts Dictionary
Create an application that lists accounts from a Dictionary object. Create an Account class that contains an ID, name, and balance. Display the accounts in a ListBox, as shown in Figure 8-42. If the user enters new values, she can click on the Add button to add a new account to the dictionary. If she clicks the Replace button, she can replace a dictionary item. Use exception handlers to catch errors caused by invalid input values, or an attempt to add a duplicate Account ID to the dictionary. Note: Remember to save the Dictionary in Session state to avoid losing your changes when the page is posted back to the server.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here