Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

partial page updates with a dictionary class?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy B - 19 Apr 2008 23:06 GMT
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?
Anthony Jones - 20 Apr 2008 09:17 GMT
> 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.

Signature

Anthony Jones - MVP ASP/ASP.NET

Andy B - 20 Apr 2008 16:49 GMT
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....

>> 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.
[quoted text clipped - 15 lines]
>
> Post back where with your attempt at it for further help.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.