Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am developing an application where i need textbox where my users will get an autocomplete feature.


(((((1)))))))
I did this code in web service
C#
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class GetPlace : System.Web.Services.WebService {

    public GetPlace () {

        //Uncomment the following line if using designed components
        //InitializeComponent();
    }

    [System.Web.Services.WebMethod]
    [System.Web.Script.Services.ScriptMethod]
    public string[] GetPlace1(string prefixTex)
    {
        string[] s={"Hello World","abc"};
        return s;
    }

I expected this will pop up "Hello World","abc" but it does not show any thing. please help me



(((((2)))))))
and this for Control

           <asp:TextBox ID="txtCountry" runat="server" Height="25px" Width="395px">
                            <cc1:AutoCompleteExtender ID="AutoCompleteExtender1"  
                             MinimumPrefixLength="1"  runat="server" TargetControlID="txtCountry"
                               
                              ServiceMethod="GetPlace1" ServicePath="GetPlace.asmx"
                            >
                            





I expected this will pop up "Hello World","abc" but it does not show any thing. please help me
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900