Resources » Code Snippets » AJAX

Using Ajax AutoCompleteExtender

Updated: Category: AJAX
Author: Member Level: GoldPoints: 10

An Example of using Ajax

'------Code in AutoExtenderEx.aspx:-------------
<asp:ScriptManager ID="ScriptManager1" runat="server">

<asp:TextBox ID="TextBox1" runat="server" autocomplete="off"></asp:TextBox>


Properites of autocompleteextender:
(1)ServicePath : This the the path of Web service the AutoCompleteExtender will
(2)ServiceMethod : This is the method present in specified WebService.This
method will be called whenever the text changes in the TextBox1(Target
(3)MinimumPrefixLength : This is the minimun number of characters required to type in TextBox1(Target Control)
(4) TargetControlId : Id of the target control

'----The below is the method in Webservice()------------
Public Function GetAppNos(ByVal prefixText As String, ByVal count As Integer) As String()
Dim cnn As OracleConnection = New OracleConnection(ReplaceWithurconnstring)
Dim adp As OracleDataAdapter
adp = New OracleDataAdapter("select * from Application where APP_NO like '" + prefixText + "%'", cnn)
Dim daset As Data.DataSet = New Data.DataSet
adp.Fill(daset, "aaa12")
Dim temp As New List(Of String)
For i As Integer = 0 To daset.Tables(0).Rows.Count - 1
Return temp.ToArray
End Function

Did you like this resource? Share it with your friends and show your love!

Responses to "Using Ajax AutoCompleteExtender"
Author: vanchinathan  29 May 2010   Member Level: Silver   Points : 1
hi archana,

pls let me know how to use two autocomplete extender for two textboxes using webservice in with C#.

Thanks in advance.

Author: Surya Gahlot  22 Jun 2010   Member Level: Silver   Points : 1
Hi Vanchinathan,

you can get refer detailed article with code in my blog..

Surya Gahlot


Post Comment:

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:   Sign In to fill automatically.
    Email: (Will not be published, but required to validate comment)

    Type the numbers and letters shown on the left.

    Submit Article     Return to Article Index
    Subscribe to Subscribers
    Active Members
    TodayLast 7 Daysmore...

    Awards & Gifts
    Talk to Webmaster Tony John

    Online Members

    neil hakouz
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India