Results 1 to 2 of 2

Thread: Problem implementing Ajax with a dynamically generated form

  1. #1
    Join Date
    Aug 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem implementing Ajax with a dynamically generated form

    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?????

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •