Listbox and multiple selection

  • Thread starter antonio.echalecu
  • Start date
A

antonio.echalecu

Hello!! I have a listbox with all countries. I select several and save
to database. I want to get these countries from the database and select
several listbox countries according countries I get from the database.
Is this posible? I can select several of them, and click the save
button to save in a database, but I don't know how I can get from the
database several countries and select them in a listbox where I have
all the countries. Only lets me to select one, no several. Can anyone
help me?? Thank you very much.

Another cuestión, Does anyone know a program to generate documentation
from a ASP.NET project?? Thanks again
 
K

Ken Cox [Microsoft MVP]

Hi Antonio,

Is it that you can't select multiple items in the listbox? Is the
SelectionMode set to Multiple?

<asp:ListBox id="ListBox1" runat="server"
SelectionMode="Multiple"></asp:ListBox></P>

Perhaps you could show us the code that isn't working so we could diagnose
the problem?

Ken

Hello!! I have a listbox with all countries. I select several and save
to database. I want to get these countries from the database and select
several listbox countries according countries I get from the database.
Is this posible? I can select several of them, and click the save
button to save in a database, but I don't know how I can get from the
database several countries and select them in a listbox where I have
all the countries. Only lets me to select one, no several. Can anyone
help me?? Thank you very much.

Another cuestión, Does anyone know a program to generate documentation
from a ASP.NET project?? Thanks again
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top