i have a drop down list on an update page which gets its content from a database and selected = true on the selection they have made previously
if the person wanted to change the selection i get a error dropdownlist cannot have multiple selection error
how do i change the previous selection so that the person can select a different option
can anyone pls help
thanks in advance
AiyshaI think your problem is in the PostBack you must use If Not IsPostBack
If No IsPostBack Then
'..your code which reads from the DataBase
End If
if(!IsPostBack) {
//your code which reads from the DataBase
}
if the person wanted to change the selection i get a error dropdownlist cannot have multiple selection error
how do i change the previous selection so that the person can select a different option
can anyone pls help
thanks in advance
AiyshaI think your problem is in the PostBack you must use If Not IsPostBack
If No IsPostBack Then
'..your code which reads from the DataBase
End If
if(!IsPostBack) {
//your code which reads from the DataBase
}