if Dropdownlist Contains entry

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jobs

    if Dropdownlist Contains entry

    How can I condition if a dropdownlist contains a value?

    this clearly don't work.

    If ddl.items.FindB yValue("RT-RECHARGE") Then

    Do i have to loop through it?
  • Juan T. Llibre

    #2
    Re: if Dropdownlist Contains entry

    To get the selected value, use : ddl.items.Selec tedItem.Value
    You can also use : ddl.items.Selec tedValue



    Juan T. Llibre, asp.net MVP
    asp.net faq : http://asp.net.do/faq/
    foros de asp.net, en espaƱol : http://asp.net.do/foros/
    =============== =============== ========
    "jobs" <jobs@webdos.co mwrote in message news:6f5e473b-2c23-4b49-a544-6768286ca21a@f3 g2000hsg.google groups.com...
    How can I condition if a dropdownlist contains a value?
    >
    this clearly don't work.
    >
    If ddl.items.FindB yValue("RT-RECHARGE") Then
    >
    Do i have to loop through it?

    Comment

    Working...