J
Jeff
hi
asp.net 2.0
The webmethod below don't get called. I'm not sure what I do wrong here. I
think it's something to with the parameters. The GetCompletionList takes 2
parameters. I don't set the value of these input parameters.
[WebMethod]
Car: <asp:TextBox ID="txtCar" runat="server"></asp:TextBox>
<cc1:AutoCompleteExtender ID="AutoCompleteExtender1"
runat="server"
TargetControlID="txtCar"
ServicePath="~/Services/AutoCompleteWebSite.asmx"
ServiceMethod="GetCompletionList"
MinimumPrefixLength="3" CompletionSetCount="10" >
</cc1:AutoCompleteExtender>
public List<string> GetCompletionList(string prefix, int count)
{
List<string> cars = Car.GetCarsCollection(prefix, count);
List<string> names = null;
foreach (Car car in cars)
{
names.Add(car.Url);
}
return names;
}
any suggestions why my code isn't executed
asp.net 2.0
The webmethod below don't get called. I'm not sure what I do wrong here. I
think it's something to with the parameters. The GetCompletionList takes 2
parameters. I don't set the value of these input parameters.
[WebMethod]
Car: <asp:TextBox ID="txtCar" runat="server"></asp:TextBox>
<cc1:AutoCompleteExtender ID="AutoCompleteExtender1"
runat="server"
TargetControlID="txtCar"
ServicePath="~/Services/AutoCompleteWebSite.asmx"
ServiceMethod="GetCompletionList"
MinimumPrefixLength="3" CompletionSetCount="10" >
</cc1:AutoCompleteExtender>
public List<string> GetCompletionList(string prefix, int count)
{
List<string> cars = Car.GetCarsCollection(prefix, count);
List<string> names = null;
foreach (Car car in cars)
{
names.Add(car.Url);
}
return names;
}
any suggestions why my code isn't executed