Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Ich meine natürlich wenn ein Item angeharkt ist =)

Ja habs mim Debugger geprüft.

itm wird folgendermaßen ermittelt:

ArrayList SelectedItems = new ArrayList();

            foreach (ListItem itm in CheckBoxList1.Items)

            {

               if (itm.Selected == true)

                {

SelectedItems.Add(itm.Value);

                }

        }

mit einer foreach schleife wird die CheckBoxList durchlaufen und sobald ein Item angeharkt ist wird es dem array hinzugefügt.

Nur so als Tipp nebenbei: Ich würde die ArrayList umbenennen. Da es auch Eigenschaften von irgendwelchen GUI-Elementen gibt, die auch so heißen, ist das echt verwirrend.

So, habs nu geschafft.

if (!IsPostBack)

            {


                //list files to backup

                cbl_files.Items.Clear();

                string path = MapPathSecure("/source/");

                foreach (string file in Directory.GetFiles(path))

                    cbl_files.Items.Add(file.Substring(93));

                //end list files to backup


                //list files in destination folder

                lb_destination.Items.Clear();

                string path2 = MapPathSecure("/destination/");

                foreach (string file2 in Directory.GetFiles(path2))

                    lb_destination.Items.Add(file2.Substring(98));

                // end list files in destination folder

            }

musste einfach nur überprüfen ob ein Postback durhcgeführt wurde, weil sonst die CheckBoxList immer wieder von neuem gefüllt wurden ist und somit immer alles false war.

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.