Limiting Auto suggest dropdown

Discussion in 'ASP .Net' started by =?Utf-8?B?V2FyYW4=?=, May 17, 2006.

  1. Hi,

    Please look the fields (Insurance, Defense Attorney, Applicant/Plaintiff
    Attorney) under party list in
    http://www.reccustodian.com/defensepro/order/neworder.aspx

    The above said fields are auto suggest textbox like. When you enter some
    letter on these box, you will get the matches as a dropdown box below the
    text box. I want to display only the top 25 matches in the drop down.
    The below function is used to display the matches

    Public Shared Function FindMatchingStates(ByVal searchCriteria As
    String) As String()
    Dim allData As DataSet = GetShippingData()
    Dim foundStates As DataRow() =
    allData.Tables("Records").Select("sFirm_nm LIKE '" + searchCriteria + "%'")
    If Not foundStates Is Nothing Then
    Dim found(foundStates.Length - 1) As String
    For i As Integer = 0 To foundStates.Length - 1
    found(i) =
    Convert.ToString(foundStates(i)("sFirm_nm"))
    Next
    Return found
    End If
    Return Nothing
    End Function

    Thanks in Advance

    Waran
     
    =?Utf-8?B?V2FyYW4=?=, May 17, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rick Csucsai
    Replies:
    4
    Views:
    503
    Jeffrey Todd
    Jun 11, 2005
  2. =?Utf-8?B?V2FyYW4=?=

    Auto-Suggested Textbox like google auto suggest

    =?Utf-8?B?V2FyYW4=?=, Apr 20, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    8,572
    inrakeshworld
    Jul 27, 2007
  3. =?Utf-8?B?V2FyYW4=?=

    Limiting Auto suggest dropdown

    =?Utf-8?B?V2FyYW4=?=, May 17, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    2,100
    =?Utf-8?B?V2FyYW4=?=
    May 17, 2006
  4. linkswanted
    Replies:
    1
    Views:
    994
  5. Kingdom
    Replies:
    6
    Views:
    155
    Adrienne
    Sep 25, 2003
Loading...

Share This Page