Dynamically Populating a Control Using JavaScript Code : ASP.NET Ajax Tutorials

The DynamicPopulate control in the ASP.NET AJAX Control Toolkit calls a web service (or page method) and fills the resulting value into a target control on the page, without a page refresh. It is also possible to trigger the population using custom client-side JavaScript code. First of all, you need an ASP.NET Web Service which implements the method to be called by the DynamicPopulateExtender control. The web service implements the method getDate() that expects one argument of type string, called contextKey, since the DynamicPopulate control sends one piece of context information with each web service call. Here is the code (file DynamicPopulate.vb.asmx) which retrieves the current date in one of three formats...

Read More:
Dynamically Populating a Control Using JavaScript Code : ASP.NET Ajax Tutorials

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment