Disable Combo Items

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

    Disable Combo Items


    How to disable combo items?





    Mervin Jadhav
    Software Developer
    Solutiioneyes Pvt Ltd (http://www.solutiioneyes.com)
    203, Sai Chambers, 16 Mumbai-Pune Rd, Pune - 411 003 INDIA
    mervinjadhav@ya hoo.com
    Voice: + 91 20 2553 9120 | fax: +91 20 2553 5293 | +91 20 9890921356



    --
    MervinJadhav
    ------------------------------------------------------------------------
    Posted via http://www.codecomments.com
    ------------------------------------------------------------------------

  • Dave Anderson

    #2
    Re: Disable Combo Items

    MervinJadhav wrote:[color=blue]
    > How to disable combo items?[/color]

    For the most part, this is not really an ASP issue. But here are some
    suggestions, assuming you mean HTML SELECT elements, not "combo items":

    • Don't use them
    • Toggle the [disabled] property
    • Set the DISABLED attribute
    • Omit the NAME attribute
    • Ignore its value on the server side



    --
    Dave Anderson

    Unsolicited commercial email will be read at a cost of $500 per message. Use
    of this email address implies consent to these terms. Please do not contact
    me directly or ask me to contact you directly for assistance. If your
    question is worth asking, it's worth posting.


    Comment

    • Bob Barrows [MVP]

      #3
      Re: Disable Combo Items

      Dave Anderson wrote:[color=blue]
      > MervinJadhav wrote:[color=green]
      >> How to disable combo items?[/color]
      >
      > For the most part, this is not really an ASP issue. But here are some
      > suggestions, assuming you mean HTML SELECT elements, not "combo
      > items":
      > • Don't use them[/color]

      Huh? That's a new one. What is your objection to using SELECT elements and
      what's the alternative?
      --
      Microsoft MVP - ASP/ASP.NET
      Please reply to the newsgroup. This email account is my spam trap so I
      don't check it very often. If you must reply off-line, then remove the
      "NO SPAM"


      Comment

      • Dave Anderson

        #4
        Re: Disable Combo Items

        Bob Barrows [MVP] wrote:[color=blue][color=green]
        >> • Don't use them[/color]
        >
        > Huh? That's a new one. What is your objection to using SELECT
        > elements and what's the alternative?[/color]

        I have no objection to SELECT elements. Not using them happens to be one way
        to avoid giving the client access to them.

        I am a client-side-security atheist, and whenever I see a question like
        this, I suspect a well-meaning but useless "security" effort. If the point
        of "disabling" is to improve some logic flow or otherwise enhance the UI,
        fine. But what's the point in putting all of those OPTIONS on the page if
        you don't want the user to have access to them? In many such cases, simply
        not using a SELECT element would be a better design choice.



        --
        Dave Anderson

        Unsolicited commercial email will be read at a cost of $500 per message. Use
        of this email address implies consent to these terms. Please do not contact
        me directly or ask me to contact you directly for assistance. If your
        question is worth asking, it's worth posting.


        Comment

        Working...