hi, some question bout condition of Dropdownlist..
hi, i got a dropdown list whic bind to a database field, and, if there is listitem inside the dropdownlist, i need to do something, if not, i'll do something else...
here is my code,
dim objCmd1 as OleDbCommand = new OleDbCommand("SELECT SentTime FROM Instructions WHERE Status ='" & Outstanding & "'", Conn1)
dim objReader1 as OleDbDataReader
objCmd1.Connection.Open()
objReader1=objCmd1.ExecuteReader
DdlInstructList.DataSource = objReader1
DdlInstructList.DataBind()
objReader1.Close
objCmd1.Connection.Close()
if DdlInstrucList........
the problem is... i dont know how can i check is there any listitem inside the dropDownList... can any1 show me the way to check it? or provide some documentation? thanks!
Best Regards
life's Ng
|