When the form loads, I populate a standard combo box. There is an option for the users to add more entries into the Database. When the user selects this option I present them with my ajax modal popup control. The user uses the modal popup to add entries into the DB. This all works fine. The problem is that at the end of the update, I call a sub that repopulates my dropdown which is on the main form. It seems to go through the motions, but when I select the dropdown I cannot see my new entry in the list. If I kill the page and start again, then my new entry appears.
So, how can I cause my dropdown to update after I have used the Ajax control?
If you find my answers helpful, dont forget to rate me
// grab the combo
var theCombo = window.opener.document.getElementById('ID of <select>');
// truncate the combo
theCombo.length = 0;
// now repopulate the list. you can use ASP.NET to write this JS part.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.