Hi,
I am using autocompleteextender for a textbox that has to display string values in the form 'xxx-xx-xxx'. But, while displaying, it performs subtractions xxx (minus) xx (minus) xxxx and displays a resultant value 'yyyy' instead of ('xxx-xx-xxx'). How can I get around this?
ASPX code:
<asp:TextBox ID="txt" runat="server" />
<cc1:AutoCompleteExtender ID = "ace" runat="server"
TargetControlID="txt" MinimumPrefixLength="1" ServiceMethod="GetValues"
EnableCaching="false" >
</cc1:AutoCompleteExtender>
code behind:
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static List<string> GetValues (string prefixText)
{
return values from here // i have printed the list values here . they are correctly formed 'xxx-xx-xxxx'
}
Thanks!!