Note. This is based on updated question content.
, (dropdownlist1 listbox1)
page_load :
dropdownlist1.items.insert(0, "----Select Sort Method----")
dropdownlist1.items.insert(1, new ListItem("Alphabetic Ascending", "AlphaAsc"))
dropdownlist1.items.insert(2, new ListItem("Alphabetic Descending", "AlphaDesc"))
dropdownlist1.items.insert(3, new ListItem("Numeric Ascending", "NumAsc"))
dropdownlist1.items.insert(4, new ListItem("Numeric Descending", "NumDesc"))
dropdownlist1.selectedindex = 0
dropdownlist1.selectedindexchanged :
if dropdownlist1.selectedindex <> 0 then
select case dropdownlist1.selectedvalue
case "AlphaAsc"
Insert Code to Sort ListBox1 Alphabetically in ascending order
case "AlphaDesc"
Insert Code to sort ListBox1 Alphabetically in descending order
case "NumAsc"
Insert code to sort ListBox1 Numerically in ascending order
case "NumDesc"
Insert code to sort ListBox1 Numerically in descending order
end select
end if
. , dropPaintBack dropdownlist1 true, , .