views:

39

answers:

1

Hello friends,

I have two cascading drop downs on my page i.e. ddlInsCompanies and ddlInsAdjusters. Both the DDLs are data bounded using a web method from web service. The Cascading DDLs are working fine and i am able to save data as well.

The problem here is that when i try to open up the record, the selected value for ddlInsCompanies is generating error. When i checked code behind i found that ddlInsCompanies is yet to databind when trying to set selected value.

I tried writing the following code in Page Load but still not working

cddInsComp.DataBind();  //Ajax cascading drop down control
ddlInsCompanies.DataBind();  //Drop Down List server control

Can anybody help me how to databound drop down on page load.

+1  A: 

You can try this answer

JumpingJezza
Thanks buddy!!! It helped me.
IrfanRaza