Click here to Skip to main content
15,917,176 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Temprory GridView to Database Pin
N a v a n e e t h20-Nov-07 22:15
N a v a n e e t h20-Nov-07 22:15 
QuestionASP data base data insertion Pin
JonCox20-Nov-07 21:17
JonCox20-Nov-07 21:17 
AnswerRe: ASP data base data insertion Pin
John-ph20-Nov-07 21:21
John-ph20-Nov-07 21:21 
GeneralRe: ASP data base data insertion Pin
JonCox21-Nov-07 12:18
JonCox21-Nov-07 12:18 
QuestionHow to Retrieve the Structure of DataBase Pin
aswini20-Nov-07 20:49
aswini20-Nov-07 20:49 
AnswerRe: How to Retrieve the Structure of DataBase Pin
Michael Sync20-Nov-07 21:04
Michael Sync20-Nov-07 21:04 
AnswerRe: How to Retrieve the Structure of DataBase Pin
John-ph20-Nov-07 21:13
John-ph20-Nov-07 21:13 
QuestionAutoComplete TextBox Pin
kirthikirthi20-Nov-07 20:05
kirthikirthi20-Nov-07 20:05 
HI all

I am trying to create a autocomplete textbox i used this code

The code in c# it is working fine but when i convert to VB it is giving error . Smile | :)

on page load()

" acSearch.OnAutoComplete = New Autocomplete.AutoCompleteHandler(Me.GetSearchData)"


can any one tell me what i am missing in the code.

MY CODE

--------------
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
AjaxPro.Utility.RegisterTypeForAjax(GetType(WebForm1))

acSearch.PageType = Me.[GetType]().BaseType



acSearch.OnAutoComplete = New Autocomplete.AutoCompleteHandler(Me.GetSearchData)


End Sub


<ajaxpro.ajaxmethod()> _

Public Function GetSearchData(ByVal s As String) As System.Data.DataTable
Dim conn As New SqlConnection("server=DSS1;uid=sa;pwd=sa;database=Northwind")
Dim cmd As New SqlCommand("SELECT FirstName FROM Employees WHERE FirstName LIKE @FirstName + '%'", conn)
cmd.Parameters.Add("@FirstName", s)


Dim da As New SqlDataAdapter
Dim ds As New DataSet

da.SelectCommand = cmd
da.Fill(ds, "Employee")

Return ds.Tables("Employee")
End Function

-----------------

Keerthi
AnswerRe: AutoComplete TextBox Pin
Michael Sync20-Nov-07 20:10
Michael Sync20-Nov-07 20:10 
GeneralRe: AutoComplete TextBox Pin
kirthikirthi20-Nov-07 20:34
kirthikirthi20-Nov-07 20:34 
GeneralRe: AutoComplete TextBox Pin
Michael Sync20-Nov-07 20:45
Michael Sync20-Nov-07 20:45 
GeneralRe: AutoComplete TextBox Pin
kirthikirthi20-Nov-07 21:13
kirthikirthi20-Nov-07 21:13 
Questionproblem with rtf file downloading(plz solve this problem) Pin
lakshmichawala20-Nov-07 19:48
lakshmichawala20-Nov-07 19:48 
QuestionError Message 401.3 Pin
Reddy Prakash20-Nov-07 19:44
Reddy Prakash20-Nov-07 19:44 
AnswerRe: Error Message 401.3 Pin
Sun Rays20-Nov-07 21:39
Sun Rays20-Nov-07 21:39 
QuestionImages not retriving from Db Pin
Krishna Varadharajan20-Nov-07 19:41
Krishna Varadharajan20-Nov-07 19:41 
AnswerRe: Images not retriving from Db Pin
Michael Sync20-Nov-07 19:43
Michael Sync20-Nov-07 19:43 
AnswerRe: Images not retriving from Db Pin
John-ph20-Nov-07 19:59
John-ph20-Nov-07 19:59 
GeneralRe: Images not retriving from Db Pin
Krishna Varadharajan20-Nov-07 21:47
Krishna Varadharajan20-Nov-07 21:47 
GeneralRe: Images not retriving from Db Pin
Sun Rays20-Nov-07 21:53
Sun Rays20-Nov-07 21:53 
GeneralRe: Images not retriving from Db Pin
Krishna Varadharajan20-Nov-07 22:25
Krishna Varadharajan20-Nov-07 22:25 
GeneralRe: Images not retriving from Db Pin
N a v a n e e t h20-Nov-07 22:30
N a v a n e e t h20-Nov-07 22:30 
GeneralRe: Images not retriving from Db Pin
John-ph20-Nov-07 22:09
John-ph20-Nov-07 22:09 
GeneralRe: Images not retriving from Db Pin
Krishna Varadharajan20-Nov-07 22:30
Krishna Varadharajan20-Nov-07 22:30 
GeneralRe: Images not retriving from Db Pin
John-ph20-Nov-07 22:45
John-ph20-Nov-07 22:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.