Populating a ModalPopupExtender Dynamically

Friday, August 14, 2009

Populating a ModalPopupExtender Dynamically In the following week I was asked to dynamically populate a popup that is created by a ModalPopupExtender. The answer is simple. There are two ways to that and in this post I’ll show them both. Building the Script Service The first thing I did was to create a ScriptService. The service will create dynamically the controls I want to populate the popup of the ModalPopupExtender with. The following ScriptService will write a div and a bold text to its GetData method callers: /// <summary>/// Summary description for ExampleService/// </summary> public class...

Creating AutoCompleteExtender Trigger Button

Wednesday, June 10, 2009

Creating AutoCompleteExtender Trigger Button Yesterday I’ve been consulting at a client. During the day, I got a question regarding ASP.NET AJAX Control Toolkit’s AutoCompleteExtender. The question was how to create a trigger button to the AutoCompleteExtender in order to go to the server and fetch the results. This post will describe how to do that. Creating an Autocomplete Web Service The first thing to do when you want to use the AutoCompleteExtender is to create the web service that you’ll connect to. In my example, I’m going to use the following suggestions web service: public class SuggestionsService : WebService{...