Danfgl 0 Denunciar post Postado Janeiro 21, 2010 Galera estou comecando a usar o Ajax, instalei o ajax toolkit e tal ... So tem 1 detalhe uso vb.net e nao sei nem por onde comeco para fazer funcionar esse autocompleter.. Basicamente seria ir no oracle e o autocompleter apartir de 2 digitos ele vai fazendo o select.. Grato Daniel Compartilhar este post Link para o post Compartilhar em outros sites
Ivan.Teles 23 Denunciar post Postado Janeiro 21, 2010 Boa tarde! Dá uma olhada em http://forum.imasters.com.br/index.php?/topic/339972-problema-com-autocompleteextender-do-ajax/page__hl__autocompleteextender__fromsearch__1 Compartilhar este post Link para o post Compartilhar em outros sites
Danfgl 0 Denunciar post Postado Janeiro 21, 2010 Boa tarde! Dá uma olhada em http://forum.imasters.com.br/index.php?/topic/339972-problema-com-autocompleteextender-do-ajax/page__hl__autocompleteextender__fromsearch__1 Entao eu ja olhei esse topico, so q ele nao tem solucao .. e nao funciona .. tentei fazer utilizando algo parecido e nao funciona .. gostaria de 1 exemplo em vb.net funcionando .. :} obrigado Compartilhar este post Link para o post Compartilhar em outros sites
Ivan.Teles 23 Denunciar post Postado Janeiro 22, 2010 Segue exemplo em vb.net http://www.dotnetspider.com/resources/30824-AutoCompleteExtender-without-webservice.aspx e outro em C# http://www.aspdotnetcodes.com/AutoComplete_From_Database.aspx Compartilhar este post Link para o post Compartilhar em outros sites
Danfgl 0 Denunciar post Postado Janeiro 22, 2010 Segue exemplo em vb.net http://www.dotnetspider.com/resources/30824-AutoCompleteExtender-without-webservice.aspx e outro em C# http://www.aspdotnetcodes.com/AutoComplete_From_Database.aspx show de bola dei 1 boa olhada pesquisei videos tb .. meu codigo eh html <asp:ScriptManager runat="server"> <Services> <asp:ServiceReference Path="~/aspx/AutoComplete.asmx"/> </Services> </asp:ScriptManager> <cc1:AutoCompleteExtender ID="TextBox1_AutoCompleteExtender" runat="server" ServiceMethod="GetCompletionList" ServicePath="AutoComplete.asmx" TargetControlID="TextBox1" UseContextKey="True"> </cc1:AutoCompleteExtender> Autocomplete.asmx Imports System.Web Imports System.Web.Services Imports System.Web.Services.Protocols Imports System.ComponentModel Imports System.Collections.Generic Imports System.Web.Script.Services.ScriptServiceAttribute Imports System.Web.Script.Services.ScriptMethodAttribute ' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. ' <System.Web.Script.Services.ScriptService()> _ <System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _ <System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _ <ToolboxItem(False)> _ Public Class AutoComplete Inherits System.Web.Services.WebService <WebMethod()> _ Public Function GetCompletionList(ByVal prefixText As String, ByVal count As Integer) Dim c1 As Char Dim c2 As Char Dim c3 As Char If (count = 0) Then count = 10 End If Dim rnd As New Random Dim items As New List(Of String) For i As Integer = 1 To count c1 = CStr(rnd.Next(65, 90)) c2 = CStr(rnd.Next(97, 122)) c3 = CStr(rnd.Next(97, 122)) items.Add(prefixText + c1 + c2 + c3) Next i Return items.ToArray() End Function End Class eu ponho 1 ponto de debug no metodo e digito algo no textbox acontece nada .. nao da erro nem executa o metodo .. o q pode estar faltando ? Grato Compartilhar este post Link para o post Compartilhar em outros sites
Ivan.Teles 23 Denunciar post Postado Janeiro 22, 2010 Remove a aspa simples da linha: ' <System.Web.Script.Services.ScriptService()> _E testa! Compartilhar este post Link para o post Compartilhar em outros sites
Danfgl 0 Denunciar post Postado Janeiro 25, 2010 Beleza brother vo testar segunda feira la no trabalho .. ja funcionando começo a fazer o sql pra ele pegar no banco os dados Obrigado mesmo pela sua atenção. Muito bom esse forum Removi como sugerido e de nada adiantou .. ja nao sei mais o que fazer .. isso ta me deixando louco hahahaha se tiver 1 luz ai .. abracoss Compartilhar este post Link para o post Compartilhar em outros sites