web control library with AJAX autocomplete

Aug 30, 2007 at 2:39 PM
Hello Experts ,

I have a AJAX autocomplete Textbox with onmouse over will display details of employees in web user control. Its working fine. Now i would like to implement this as web control library.

In this regard i have designed whole code, but i stuck how can i generate ajaxToolkit:AutoCompleteExtender; ajaxToolkit:TextBoxWatermarkExtender during runtime, i mean properties. I have created a new instance for AutoCompleteExtender; TextBoxWatermarkExtender and started puting down following properties in code behind as shown in below but i did not find AutoCompleteExtender.TargetcondrolID, TextBoxWatermarkExtender.TargetControlID for the created instance.

<ajaxToolkit:AutoCompleteExtender
runat="server"
ID="ACEpeopleSuggest"
BehaviorID="myTextBox"
TargetControlID="myTextBox"
ServicePath="../PeopleSelector_UCR/AutoComplete.asmx"
ServiceMethod="GetCompletionList"
MinimumPrefixLength="2"
CompletionInterval="10"
EnableCaching="true"
CompletionSetCount="10"
UseKeyValuePairs="true" FirstRowSelected="true"/>

<ajaxToolkit:TextBoxWatermarkExtender ID="TxtWaterMark" runat="server"
TargetControlID="myTextBox"
WatermarkText="Type Name Here"
WatermarkCssClass="watermarked" />



I am not sure how can i generate this stuff with web control library in order to obtain complete functionality .And also how can i add Script manager in this..

appreciate your help on this