Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 18th, 2006, 10:58 PM
Registered User
 
Join Date: Jan 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default getting Listboxes to communicate

(I posted this also in the Beginner section, but now that I think about it, this question is probably not a beginner question.)

 have 2 listboxes dependent on each other -- choose one thing in the first, and the second opens a related listbox. I'm using ASP.NET 2.0, and have the listboxes bound to data in two different tables, with the second table having a column with the relation to listbox1 (the data portion is the next step). For now, my question is understanding the listbox since it's a collection.

I found similar code where gridview and detailsview controls communicate, and tried to apply it to Listboxes:

listbox2.selectedindex = listbox1.selectedindex;

in the SelectedIndexChanged event (C#), and the second box doesn't show the related items. Do I need different code because the control is a collection?
 
Old January 26th, 2006, 11:44 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

cross post:
http://p2p.wrox.com/topic.asp?TOPIC_ID=38911






Similar Threads
Thread Thread Starter Forum Replies Last Post
getting Listboxes to communicate susan_ny ASP.NET 2.0 Basics 1 January 26th, 2006 11:41 PM
How to communicate between tiers Pallavs20 General .NET 0 September 23rd, 2005 02:41 AM
Listboxes Sub-Listboxes and Table Linking MJB05 Access 4 September 20th, 2005 12:37 PM
How to Communicate other peers rakesh_mahajan BOOK: ASP.NET Website Programming Problem-Design-Solution 1 July 18th, 2005 09:02 PM
How to communicate with other peers rakesh_mahajan C++ Programming 0 July 18th, 2005 04:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.