Click here to Skip to main content
15,909,503 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I have abc.aspx page.
And in the same page i have put iframe for showing result on submit button click.. in abc.aspx page there are two dropdownlist DDL1 and DDL2..

In DDL1 dropdownlist i have populated countries from database and with respect to selected country i have to populated its state in DDL2....
but when i use selectedindexedchanged event for DDL1..then it autopostback and iframe is repeated twice ..in the same abc.aspx.

so i have to avoid it ...my target is populate country in DDL1 and onchange of that country populate state in DDL2..and onclick of submit button i have to show result(data) in iframe page with respect to selected country and state...

Thanks in Advanced
Posted
Comments
kishore sharma 11-Mar-12 8:06am    
The best way to avoid the page refresh is use update panel...
are you creating iframe dynamically(from code behind)
[no name] 11-Mar-12 10:27am    
no its created in aspx page

 
Share this answer
 
Comments
[no name] 11-Mar-12 10:29am    
i have to take data from database and bind it in DDL1..with respect to selected in DDL1 ..data may be bind in DDL2...i have check link it is static data taken i array in javascript ..it is possible to take datatable in javascript..
place your dropdownlist in update panel this is best way to avoid refresh the page
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900