partial page updates with a dictionary class?

  • Thread starter Thread starter Andy B
  • Start date Start date
A

Andy B

I have a dictionary class that I want to add key/value pairs to through a
wizard. I want to have 2 text boxes and an add button inside the wizard.
When a person fills in the 2 text boxes and presses the add button, I want
the pair to be added to the dictionary, show at the top of the page as a
definition list with edit/remove buttons next to them. How would I do
something like this?
 
Andy B said:
I have a dictionary class that I want to add key/value pairs to through a
wizard. I want to have 2 text boxes and an add button inside the wizard.
When a person fills in the 2 text boxes and presses the add button, I want
the pair to be added to the dictionary, show at the top of the page as a
definition list with edit/remove buttons next to them. How would I do
something like this?


Start with a listview, two text boxes and a command button on a ASP.NET form
Add some code in the load event to create a Dictionary and store it in the
session object if the request isn't a post back.
Add come code to the command button click event to add the values to the
dictionary in the session object.

You will need some code to feed the list view with values from the
dictionary.

Post back where with your attempt at it for further help.
 
Actually, there is no such asp.net control called a "listview". Besides, I
need it to be in a definition list (html code) and it needs to somehow be
hosted in an ajax control. I was thinking an update pannel but wasnt for
sure....
 
Back
Top