473,387 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

duplicate listbox data

Hello all,
I have 3 listboxes on my page, they all contain the same data. How can I
avoid sending the THREE complete lists with data on the webpage? I would
like to sent only 1 list with data and use it in all three listboxes.
Remark, maybe of interest: the listboxes are on 3 different tabs in an ajax
tabcontainer.
Thank you
Frank
Aug 4 '08 #1
1 1259
"Frank" <fr*******@advitronic.nlwrote in message
news:B%*******************@en-nntp-04.am2.easynews.com...
I have 3 listboxes on my page, they all contain the same data. How can I
avoid sending the THREE complete lists with data on the webpage? I would
like to sent only 1 list with data and use it in all three listboxes.
Remark, maybe of interest: the listboxes are on 3 different tabs in an
ajax tabcontainer.
Your only real option would be write a piece of client-side JavaScript which
would iterate through the first ListBox's elements collection and add copies
of them to the second and third ListBoxes. However, this would mean that you
would not be able to refer to the second and third ListBoxes in the "normal"
way on postback, since dynamic client-side modifications to ListBox elements
don't get persisted on postback because they're not in ViewState. Instead,
you'd need to reference something like Request.Form["MySecondListBox"], cast
it to a ListBox object and then inspect it....

Unless the lists are huge, I wouldn't even bother...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 4 '08 #2

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

Similar topics

9
by: Catherine Jo Morgan | last post by:
Can I set it up so that a certain combination of fields can't contain the same entries, on another record? e.g. a combination of FirstName/LastName/address? Or FirstName/LastName/phone? Or...
8
by: Ray | last post by:
I have a data input form and need to automatically duplicate the existing record as a new record by clicking a button. The main purpose to duplicate the record is that the new record is very...
1
by: pcb | last post by:
Hi All, I have a multi-select listbox, that can have duplicate items (i.e samples numbers that are analyzed in duplicate - the sample IDs are not the same, but these IDs are hidden from the...
6
by: Chris Leuty | last post by:
I am populating a multiselect Listbox from a dataset, with the content of the listbox filled by one table, and the selections determined from another table. So far, I have been keeping the dataset...
10
by: Adam Clauss | last post by:
I have a page containing a list box. This list may contain duplicate items - in which the ORDER is important. ex: a b b a is significant as compared to: b
5
by: mamatha | last post by:
Hi I am developing a VB.NET application,in that application i have a listbox.When adding items to the listbox some duplicate items are added,how can i prevent listbox items from duplication.If...
2
mgpsivan
by: mgpsivan | last post by:
Hi, I'm having 2 listboxes and The task is to move the selected item from listbox 1 to listbox 2 which is not already present in listbox2. listbox 1's selection property is set to MULTIPLE. can u...
3
by: jerrys57 | last post by:
Hi All, Need some help with a listbox display to textbox...After loading my listbox from the database, I need to be able to select duplicate names and display them in a textbox....it works fine on...
0
by: Walter Thizo | last post by:
I have substring the duplicate different records from file and i want to load those records inside listbox or paradox table distinctly - This is records from file : Student No 2001...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.