partial page updates with a dictionary class?
am 20.04.2008 00:06:03 von 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?
Re: partial page updates with a dictionary class?
am 20.04.2008 10:17:30 von Anthony Jones
"Andy B" wrote in message
news:uIFBQmmoIHA.3428@TK2MSFTNGP02.phx.gbl...
> 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.
--
Anthony Jones - MVP ASP/ASP.NET
Re: partial page updates with a dictionary class?
am 20.04.2008 17:49:04 von 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....
"Anthony Jones" wrote in message
news:%23Usz77roIHA.1420@TK2MSFTNGP03.phx.gbl...
> "Andy B" wrote in message
> news:uIFBQmmoIHA.3428@TK2MSFTNGP02.phx.gbl...
>> 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.
>
>
> --
> Anthony Jones - MVP ASP/ASP.NET
>
>