alexands
Posts: 11
|
| Posted: 12/27/2006, 12:25 PM |
|
Hi,
I realize there is a .NET forum, but it doesn't seem to get much traffic, so I amposting here.
Can someone provide an example in C# of how to iterate through the values of a multi-select listbox? I'd like to update a column based on the selected value.
Thanks,
Scott
|
 |
 |
alexands
Posts: 11
|
| Posted: 01/01/2007, 8:28 PM |
|
Not trying to bump this, but I thought I could add some more details that could be helpful.
I would like to cycle through every selected record in a multi select combo and modify the data. In C# I would get a count of the selected rows in the listbox, do a for..next loop and retrieve the selected value for each row in the listbox. From there I would execute a SQL statement. I realize there are several many-to-many examples that come with CCS, but these are in ASP, not ASP.NET and C#. The manytomany example where we assign multiple projects to a single empoyee is exactly what I need, but I'm having a dificult time translating it to C# as it is written in ASP classic.
TIA,
Scott
|
 |
 |
peterr
Posts: 5971
|
| Posted: 01/02/2007, 12:18 AM |
|
I recommend posting this question to .NET forum because I know of .NET developers who are subscribed to that forum but not sure if they are subscribed here as well.
Also, all examples are provided in all programming languages, including .NET. However, you cannot open any examples but need to create new projects based on them. The Help file describes how to use examples.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|