selecting a value from dropdownlist
-
Hi i have populated dropdownlist with data from database on form load.the problem is when ever i select a something from dropdownlist is removing the default value.for the example if my default value was jakes and select jacob it removes jakes from dropdownlist
Mamphekgo
-
Hi i have populated dropdownlist with data from database on form load.the problem is when ever i select a something from dropdownlist is removing the default value.for the example if my default value was jakes and select jacob it removes jakes from dropdownlist
Mamphekgo
Ok lets try and clarify here:
mamphekgojakes wrote:
for the example if my default value was jakes and select jacob it removes jakes from dropdownlist
what permantly or just whilst the page is in that state? i.e. if you refresh the page does it show again? Have you got an onclick event for your dropdown?
-
Hi i have populated dropdownlist with data from database on form load.the problem is when ever i select a something from dropdownlist is removing the default value.for the example if my default value was jakes and select jacob it removes jakes from dropdownlist
Mamphekgo
check if you are refreshing the list. If so make sure to not do on a postback ie
if(!IsPostback)
{
//create list....
} -
Ok lets try and clarify here:
mamphekgojakes wrote:
for the example if my default value was jakes and select jacob it removes jakes from dropdownlist
what permantly or just whilst the page is in that state? i.e. if you refresh the page does it show again? Have you got an onclick event for your dropdown?
it remove it permanently.
Mamphekgo
-
it remove it permanently.
Mamphekgo
-
is binded from database
Mamphekgo