folder Tahribat.com Forumları
linefolder C#, Asp.Net, .Net Core
linefolder 100 Tane Checkbox"In Her Birinin Onaylı Olup Olmadığını Nasıl Bulabilirim?



100 Tane Checkbox"In Her Birinin Onaylı Olup Olmadığını Nasıl Bulabilirim?

  1. KısayolKısayol reportŞikayet pmÖzel Mesaj
    AMoonRA
    AMoonRA's avatar
    Kayıt Tarihi: 07/Aralık/2007
    Erkek
    FOXXLY bunu yazdı:
    -----------------------------
    AMoonRA bunu yazdı:
    -----------------------------
    FOXXLY bunu yazdı:
    -----------------------------

    for i = 1 to 100

    response.write "if checkbox'"&i&"'.checked = True"

    next

    bunu al , not defterinde asdasdasd.asp diye kaydet sonra bi hostta aç bunu . çıkan sonucu direk lazım olan yere yaz :D


    -----------------------------

     

    Konuyu açarken kodları vb.net 'te yazmam gerektiğini yazmayı unutmuşum:) asp yi vb.net'e çeviremiyorum ya da çeviriyorum da vb.net kabul etmiyo.


    -----------------------------
    al hocam senin için hepsini tek tek yazdım :C rep isterim :C

     

     

     

    if checkbox1.checked = True
    if checkbox2.checked = True
    if checkbox3.checked = True
    if checkbox4.checked = True
    if checkbox5.checked = True
    if checkbox6.checked = True
    if checkbox7.checked = True
    if checkbox8.checked = True
    if checkbox9.checked = True
    if checkbox10.checked = True
    if checkbox11.checked = True
    if checkbox12.checked = True
    if checkbox13.checked = True
    if checkbox14.checked = True
    if checkbox15.checked = True
    if checkbox16.checked = True
    if checkbox17.checked = True
    if checkbox18.checked = True
    if checkbox19.checked = True
    if checkbox20.checked = True
    if checkbox21.checked = True
    if checkbox22.checked = True
    if checkbox23.checked = True
    if checkbox24.checked = True
    if checkbox25.checked = True
    if checkbox26.checked = True
    if checkbox27.checked = True
    if checkbox28.checked = True
    if checkbox29.checked = True
    if checkbox30.checked = True
    if checkbox31.checked = True
    if checkbox32.checked = True
    if checkbox33.checked = True
    if checkbox34.checked = True
    if checkbox35.checked = True
    if checkbox36.checked = True
    if checkbox37.checked = True
    if checkbox38.checked = True
    if checkbox39.checked = True
    if checkbox40.checked = True
    if checkbox41.checked = True
    if checkbox42.checked = True
    if checkbox43.checked = True
    if checkbox44.checked = True
    if checkbox45.checked = True
    if checkbox46.checked = True
    if checkbox47.checked = True
    if checkbox48.checked = True
    if checkbox49.checked = True
    if checkbox50.checked = True
    if checkbox51.checked = True
    if checkbox52.checked = True
    if checkbox53.checked = True
    if checkbox54.checked = True
    if checkbox55.checked = True
    if checkbox56.checked = True
    if checkbox57.checked = True
    if checkbox58.checked = True
    if checkbox59.checked = True
    if checkbox60.checked = True
    if checkbox61.checked = True
    if checkbox62.checked = True
    if checkbox63.checked = True
    if checkbox64.checked = True
    if checkbox65.checked = True
    if checkbox66.checked = True
    if checkbox67.checked = True
    if checkbox68.checked = True
    if checkbox69.checked = True
    if checkbox70.checked = True
    if checkbox71.checked = True
    if checkbox72.checked = True
    if checkbox73.checked = True
    if checkbox74.checked = True
    if checkbox75.checked = True
    if checkbox76.checked = True
    if checkbox77.checked = True
    if checkbox78.checked = True
    if checkbox79.checked = True
    if checkbox80.checked = True
    if checkbox81.checked = True
    if checkbox82.checked = True
    if checkbox83.checked = True
    if checkbox84.checked = True
    if checkbox85.checked = True
    if checkbox86.checked = True
    if checkbox87.checked = True
    if checkbox88.checked = True
    if checkbox89.checked = True
    if checkbox90.checked = True
    if checkbox91.checked = True
    if checkbox92.checked = True
    if checkbox93.checked = True
    if checkbox94.checked = True
    if checkbox95.checked = True
    if checkbox96.checked = True
    if checkbox97.checked = True
    if checkbox98.checked = True
    if checkbox99.checked = True
    if checkbox100.checked = True


    -----------------------------

     

    :) sağol hocam ama bunun kısa yolunu bulmam lazım ki ilerleyen yıllarda bize hakkaten programcı diyebilsinler........

  2. KısayolKısayol reportŞikayet pmÖzel Mesaj
    Glaxoks
    Glaxoks's avatar
    Kayıt Tarihi: 29/Eylül/2007
    Erkek

    pascalda yazdırmış

    1 den 0 kadar :D 


    "Murid" Değil "Murit"
  3. KısayolKısayol reportŞikayet pmÖzel Mesaj
    hellcaraxe
    hellcaraxe's avatar
    Kayıt Tarihi: 13/Ekim/2003
    Erkek

    bak abi bunun da hersey gibi birkac yolu var 1. si eger checkboxları designerdan(yani surukleyip bırakarak forma koyduysa ki allah kolaylık versin) koyduysan initializecomponents isimli bir sub icerisinde gorursun tum checkboxların tek tek formun controls diye bi arrayine eklendigini yani

    me.Controls.Add(CheckBox1)

    ..

    me.Controls.Add(CheckBox100)

    seklinde bu durumda sen comboboxların kacıncı indexten itibaren basladıgını ogrenmelisin bunuda me.controls.add(combobox1) olan satırın hemen ustune msgbox(me.controls.count) yazarak cıkan mesajdan ogrenebilirsin diyelimki x cıktı ozaman

    dim Result as Boolean=true

    for i=x to me.controls.count-1

    result = Result AND me.controls(i).Checked

    next

     

    dersin result eger  hepsi check edildiyse true olur en az biri check edilmediyse false gelir.

     

    diger ve daha guzel yol:

    checkboxları designerdan ekleme bi sub uzerinde donguyle yarat ekle ve ekledigin her checkbox ı da ayrıca bir arrayliste ekle.

    daha sonra sadece checkboxları iceren arraylistte istedigini yaparsın..

    ayrıntılı bilgi istersen pm at. 

Toplam Hit: 4782 Toplam Mesaj: 14