Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB
VB.NET
ASP
ASP.NET
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Mailing List
Link to us
Product Spotlight
Hosting Spotlight
ASP.NET AJAX AUTO COMPLETION FEATURE USING VB.NET
Author:
DHAKCHINA MOORTHY.C
E-mail:
Click to e-mail author
Website:
http://oh-indian.com
Submitted:
8/19/2007
Version:
VB 2005
Compatibility:
VB 2005, ASP.NET 2.0
Category:
ASP.NET
Views:
7840
There is no sample coding for ASP.NET AJAX based autocomplete textbox using VB.NET. I tried a lot in order to identify the following working code. Hope this will be very much useful to all. All the best.
Declarations:
Here is the Code to be written in Web Service file. ' Note, by default while we create the webservice, ' it does not add the script serivce line. ' We need to add it manually. ' Without this line the code will not work. '
Imports System.Web Imports System.Web.Services Imports System.Web.Services.Protocols
_
_
_
_ Public Class AutoComplete Inherits System.Web.Services.WebService Private Shared autoCompleteWordList As String()
_ Public Function GetWordList(ByVal prefixText As String, ByVal count As Int16) As String() Dim S(count - 1) As String Dim I As Integer For I = 0 To count - 1 S(I) = prefixText & " " & Environment.TickCount Next Return S End Function End Class
Code:
' This code is to be placed in the aspx.
ASP.NET 2.0 Hosting
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2008 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement