Archive for the ‘Dropdown List’ Category

How to search string in the DropdownList Control

  1.  
  2. function searchString(sText as String)
  3. dim li as ListItem
  4.  
  5. li = dropdownlist1.Items.FindByValue(sText);
  6.  
  7. if li isnot nothing then
  8.  
  9. li.selected = True
  10.  
  11. end if
  12.  
  13.  
  14. end function

, ,

No Comments


Dropdown List event not firing

Just make sure to set the AutoPostBack = true.

, ,

No Comments



SetPageWidth