IF not ispostback.
DIM Astr As String
astr = "Select AutherName from Picture"
DIM CMD1 AS New Sqlcommand (Astr, Conn)
Conn.open ()
DIM ADP AS New SqldataAdapter (cmd1)
DIM DS AS New DataSet
ADP.FILL (DS, "Picture")
DROPDOWNLIST1.DATASOURCE = ds.tables (0) .defaultView
DropDownList1.Database
DropdownList1.DataTextField = "Authername"
DROPDOWNLIST1.DATAVALUEFIELD = "PID"
CONN.CLOSE ()
END IF
Ok, thank you\, but there is a problem, it is a few as a few Authername in my table, which is displayed in DropDownList, I want it to display only one, what??????????