Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 18th, 2006, 10:58 PM
Registered User
 
Join Date: Jan 2006
Location: , , .
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?
  #2 (permalink)  
Old January 26th, 2006, 11:44 PM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

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

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:17 PM.


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