Welcome Guest
Tanvtech logo
Tanvtech logo
This article is about calling a webservice and connecting it to the Ajaxautocomplete control, Let us create a usercontrol and implement the ajaxAutocomplete control.

Select add new item and select web user control
Add a database linq class to the project and for example

drag a table from the data source as show below

Create or add a webservice and write a webmethod
Add web reference to the project

Select the service name and method

Add a textbox gridview and button to your user control, and a hidden field as show below.

Also a a javascript function as show below.

The user control will look like this
Write the code for TextBox Textchange event

Type in some like name in the textbox and you will see some result base on search paramter.
Select a value and it will display the select values in the gridview
© Tanvtech. All Rights Reserved.