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 GetCompletionLi st takes 2
parameters. I don't set the value of these input parameters.
[WebMethod]
Car: <asp:TextBox ID="txtCar" runat="server"> </asp:TextBox>
<cc1:AutoComple teExtender ID="AutoComplet eExtender1"
runat="server"
TargetControlID ="txtCar"
ServicePath="~/Services/AutoCompleteWeb Site.asmx"
ServiceMethod=" GetCompletionLi st"
MinimumPrefixLe ngth="3" CompletionSetCo unt="10" >
</cc1:AutoComplet eExtender>
public List<stringGetC ompletionList(s tring prefix, int count)
{
List<stringcars = Car.GetCarsColl ection(prefix, count);
List<stringname s = null;
foreach (Car car in cars)
{
names.Add(car.U rl);
}
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 GetCompletionLi st takes 2
parameters. I don't set the value of these input parameters.
[WebMethod]
Car: <asp:TextBox ID="txtCar" runat="server"> </asp:TextBox>
<cc1:AutoComple teExtender ID="AutoComplet eExtender1"
runat="server"
TargetControlID ="txtCar"
ServicePath="~/Services/AutoCompleteWeb Site.asmx"
ServiceMethod=" GetCompletionLi st"
MinimumPrefixLe ngth="3" CompletionSetCo unt="10" >
</cc1:AutoComplet eExtender>
public List<stringGetC ompletionList(s tring prefix, int count)
{
List<stringcars = Car.GetCarsColl ection(prefix, count);
List<stringname s = null;
foreach (Car car in cars)
{
names.Add(car.U rl);
}
return names;
}
any suggestions why my code isn't executed
Comment