PDA

View Full Version : Problem implementing Ajax with a dynamically generated form



sylo_y
08-21-2006, 08:13 AM
Hi all,

I hope someone could help me with my problem. I have a webpage that contains a master page, a content control and a placeholder plus some buttons.

At run time I add some dropdownlists with their events. Now since I have a postback problem I added AJAX to my project. I've put placeholder inside the <ContentTemplate> of the updatepanel.

The problem is when I click and change the value in one the dropdownlists its event is triggered data is brought to be filled in another ddl but this data is not showing until I press on a button outside the update panel causing a postback and at that moment I see the changes in the ddl ....any idea why?????

jscheuer1
08-31-2006, 08:27 AM
There are two possibilities and both may be in play.

1 ) Updating of the ddl is dependent upon a javascript function being run and this function is not being run at the appropriate time.

2 ) Updating of the ddl is dependent upon a server side value that has been updated since the most recent page load. Updated server side values cannot typically take effect on a page until it is reloaded.