CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Iterate Listbox values in C#

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.