You get this error because either sdr2("name"), or sdr2("staff_id")- null. You can avoid this in two ways:
1.
drop1l.Items.Add(New ListItem(sdr2("name").Tostring(), sdr2("staff_id").Tostring()))
2. or check the null value in the request
user4376581
source
share