473,698 Members | 2,379 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

partial page updates with a dictionary class?

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?
Jun 27 '08 #1
2 1010
"Andy B" <a_*****@sbcglo bal.netwrote in message
news:uI******** ******@TK2MSFTN GP02.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
Jun 27 '08 #2
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" <An*@yadayadaya da.comwrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
"Andy B" <a_*****@sbcglo bal.netwrote in message
news:uI******** ******@TK2MSFTN GP02.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


Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
2643
by: pawel.pabich | last post by:
Hajo, I would like to have 2 my own partial classes. For example: Default.aspx.cs Default2.aspx.cs and they both will relate to Default.aspx page.
10
2430
by: ptass | last post by:
Hi In asp.net 2.0 an aspx files .cs file is a partial class and all works fine, however, I thought I’d be able to create another class file, call it a partial class and have that compile and load as a 3rd partial class. This would be handy so i can generate standard code into one of the partial classes, while having my custom code untouched
9
5782
by: Fat Elvis | last post by:
I'd like to extend some of my Asp.net pages by using Partial Classes. Example ASP.Net Page: public partial class Admin_Customer : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Data_List(); } }
2
2322
by: Hiten | last post by:
Is it possible to have more code behind file but that file will have same class in way of partial class, Default Structure I -------------- Homepage.aspx + Homepage.aspx.cs (this .cs file will have "Homepage" class which is partial)
0
8675
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9160
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8862
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2331
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.