Working with Dynamic Populate Extender
page 4 of 6
by Nidal Arabi
Feedback
Average Rating: 
Views (Total / Last 10 Days): 12834/ 293

Explanation

The code presented here combines JavaScript with the use of web services. I think it deserves more clarification.

Listing 1 is really simple for anyone who has used html. It is simply creating a group of checks using the same name properties with different ID's. The trick here is the onclick event attached to the check box. Once a checkbox is clicked, the JavaScript function UpdatePizza gets called with a number of checkboxes to check.

Listing 2 shows the real JavaScript that reads all check boxes and formulates them into one string by concatenating the values of the checkboxes. However, there is an additional line to find the dynamic populate extender and call its populate method (dp1). You note that listing 3 specified that the behaviorid is dp1 (voila, the link).

Listing 3 brings about the whole picture. The targetcontrolid specified the panel that is going to be filled when the job is finished. Behaviorid is already explained. The option is the service method that is used to handle the dynamic call. GetPizza is the one called when the populate event is called from the JavaScript.

GetPizza webservice simply creates an HTML format filling for the panel using a sentence and a value passed from the java function.


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 6 and 6 and type the answer here:

User Comments

Title: Working with Dynamic Populate Extender   
Name: John McDonald
Date: 12/12/2008 7:22:20 PM
Comment:
Would you post a sample screen shot?






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2009 ASPAlliance.com  |  Page Processed at 1/8/2009 9:07:34 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search