views:

301

answers:

1

Hi All,

I have added usercontrol to my page datetimepicker, which fill the hours and minutes dropdown. Now the problem is when i try to update the data, i have to fill the dropdowns with the data from the database. It works ok, but after filling the data to the dropdown, when it goes to the usercontrol page it refreshes all the dropdowns and shows them at their initial stage.

Can anyone tell me if i can fill the dropdowns after the the control is loaded?

Thanks & Regards

Khushi

A: 

are the dropdowns in your usercontrol?

you can try enabling viewstate for dropdowns and not filling if the page is postback or is callback.

alternately if possible you can use jquery/ajax to fetch values on client side and bind to dropdowns.

TheVillageIdiot