How Do I: Use the ASP.NET AJAX DynamicPopulate Extender?

Watch a demonstration of using the ASP.NET AJAX DynamicPopulate extender to dynamically populate an area of a web page with the results of an asynchronous call to a web method.

Presented by Joe Stagner

Duration: 11 minutes, 19 seconds

Date: 31 January 2007

Watch the video   |   Download the video   |   Get VB code  or  C# code

Comments : 2

Leave a Comment

ajaykaushik : On May 12, 2008 11:53 AM said:

Hi,

I have been dynamic populate extender and its working in IE. But when i run it in Firefox it doesn't work. I get "Web Service call failed: 500" error. In IE its been working. I have used mostly the code available in tutorial only change is that i had to specify behaviorid to get it working.

Rest is pretty similar to Tutorial code.

Here is the code that i am using

<script type="text/javascript" language="javascript">

           function showSellerName(value){

               if (value != ''){

                   var behavior = $find('dp1');

                   if(behavior){

                       behavior.populate(value);

                   }

               }

           }

</script>

<asp:TextBox ID="txtSellerId" runat="server" MaxLength="12" Width="100px" onfocusout="showSellerName(this.value)"></asp:TextBox>

<ajaxToolkit:DynamicPopulateExtender ID="dp1" runat="server" ServiceMethod="GetSponsorName" TargetControlID="pnlSponsorName" PopulateTriggerControlID="txtSellerId" CacheDynamicResults="true" BehaviorID="dp1" UpdatingCssClass="dynamicPopulate_Updating" >

               </ajaxToolkit:DynamicPopulateExtender>

Please advise me what should i do to get it working in firefox as well.

Thanks.

rjv_rnjn : On July 22, 2008 1:51 PM said:

A sample code for achieving this in a drop-down list would be nice. As the value required to bind the drop down is a data table and not a string (in almost all cases). Currently when I wire the javascript method with the OnSelectedIndexChanged method of drop down list the web service method doesn't fire up (actually it doesn't compile at all). Any help would be great.

Thanks.

Leave a Comment

You must be logged in to leave a comment. Click here to log in.