display issue with autocompleteextender

Last post 07-31-2009 3:02 PM by pmehta. 2 replies.

Sort Posts:

  • display issue with autocompleteextender

    07-31-2009, 1:59 PM
    • Member
      19 point Member
    • pmehta
    • Member since 04-06-2009, 7:41 PM
    • Posts 72

    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!!

  • Re: display issue with autocompleteextender

    07-31-2009, 2:45 PM
    Answer

    I wouldn't have believe it unless I tried it and saw it myself.  It's nuts!  Here's a page that claims has a solution:

    http://www.codeplex.com/AjaxControlToolkit/WorkItem/View.aspx?WorkItemId=13342

    Edit: I can now confirm that this workaround does work.

  • Re: display issue with autocompleteextender

    07-31-2009, 3:02 PM
    • Member
      19 point Member
    • pmehta
    • Member since 04-06-2009, 7:41 PM
    • Posts 72

    Great!!! That solved my problem.Smile Thanks a ton!!!!!!!!

Page 1 of 1 (3 items)