Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

asp.net listbox disable selection

var items = from ListItem li in ListBox1.Items
                    select li;

        foreach (ListItem li in items)
        {
            li.Attributes.Add("disabled", "disabled");
        }
 
PREVIOUS NEXT
Tagged: #listbox #disable #selection
ADD COMMENT
Topic
Name
5+2 =