3
Answers

selected index change problem

neeraj gandhi

neeraj gandhi

8y
847
1
i have two dropdown control on the page and both have selected index change event .
when selected index change event of first control fire and get completed second automatically fired . which in turn throw me errors can any on help to slove this issue ..
 
protected void ddlPayMode_SelectedIndexChanged(object sender, EventArgs e)
{
........ some code 
 
}
 // this selected index change fires automatcially 
protected void ddlbankAcc_code_SelectedIndexChanged(object sender, EventArgs e)
{
... some code  
 
Answers (3)
0
Nirav Daraniya

Nirav Daraniya

NA 4.7k 3.2m 8y
I just say when you bind the drop down list from any dataset then do not use same dataset for both drop down list ,make separate dataset and give it as data source to drop down list .
0
neeraj gandhi

neeraj gandhi

NA 299 59.3k 8y
soory it did not work ... what you told
0
Nirav Daraniya

Nirav Daraniya

NA 4.7k 3.2m 8y
Hello,
If you use same common dataset or data table for filling both dropdown control then this situation is generate, so it you use same dataset or data table then remove this and use different dataset or data table of each dropdown control.
--Nirav Daraniya