partial page updates with a dictionary class?

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?
 
A

Anthony Jones

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.
 
A

Andy B

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....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top