Auto Complete Ajax Control

Last post 10-07-2008 2:32 AM by Pawan_Mishra. 3 replies.

Sort Posts:

  • Auto Complete Ajax Control

    10-05-2008, 10:39 PM
    • Member
      424 point Member
    • bendJoe
    • Member since 08-31-2007, 4:31 PM
    • Posts 465

    Can I use the Auto Complete control to get the ID of a matching record.

    When I am typing something in the textbox. It should show me the matching records and also I should be able to get the ID of the item.

    How can I do this?

    Thanks

  • Re: Auto Complete Ajax Control

    10-06-2008, 12:08 AM

    bendJoe,

    The signature for the autocomplete web service returns just a string array, so you won't be able to get any ID's back.  To get the ID, you'll need to do another call to the database with the selected string value as a parameter.  You can either use a client call to a web service method for this, or a page method, or you could just wait for a postback to the server to get the ID.

    James

    James Ashley, Magenic Technologies
    (james.ashley.magenic@gmail.com)
  • Re: Auto Complete Ajax Control

    10-06-2008, 11:26 PM
    • Member
      424 point Member
    • bendJoe
    • Member since 08-31-2007, 4:31 PM
    • Posts 465

     I need to send a webservice call from the client when an item is selected from the autocomplete text box extender. Which client side event can be used for this.

    Thanks

  • Re: Auto Complete Ajax Control

    10-07-2008, 2:32 AM
    Answer
    • Star
      8,667 point Star
    • Pawan_Mishra
    • Member since 03-13-2008, 7:37 AM
    • Bangalore
    • Posts 1,266

    Hi ,

    I think you are looking for some key value pair kind of feature in your autocomplete extender control .

    You can check the following links :-

    http://forums.asp.net/t/1162005.aspx

    http://forums.asp.net/p/1131690/1796218.aspx

    http://blogs.msdn.com/phaniraj/archive/2007/06/19/how-to-use-a-key-value-pair-in-your-autocompleteextender.aspx

    Regards
    Pawan Mishra

    Too many eyes doesn't make a good code !!!

    .Net 360°
Page 1 of 1 (4 items)
Microsoft Communities