Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 371165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:05:18+00:00 2026-05-12T14:05:18+00:00

I have an auto complete extender on my web page that when typed in

  • 0

I have an auto complete extender on my web page that when typed in gets address info from a database. I need to make two calls to the database, one to get a list of brief descriptions of addresses and another to get all the address information once an address description is selected. To make the second call I get a unique ID from the first call (If this is making sense). So far I have an auto complete extender that as I type in address information pulls back the list of descriptions, which is fine, but I have no way to pass back the unique ID (Which I don’t want to show to the user). Is there anyway to pass back the unique ID in the web service without the user seeing it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T14:05:18+00:00Added an answer on May 12, 2026 at 2:05 pm

    I’m not totally sure what you mean or what your level is, so this might not be what you are looking for:

    When doing your (ajax?) call to the server to get the list of descriptions, you’ll probably get a plain list of normal strings representing the possible descriptions. Instead of using plain strings, use something like JSON, where you put both id and name in. You can then fill your list of autocompletes using something like

    foreach(var obj in suggestions)
        addToList(obj.Name);
    

    Have a collection with the original suggestions somewhere in memory (like the variable ‘suggestions’); and when someone selects an autosuggested item, you can find the item back in your original array.

    foreach(var obj in suggestions)
        if(obj.Name == document.getElementById('suggestionTextbox').value) return obj.id;
    

    With the id, you can do a new call to the database using PageMethods or other kinds of Ajax stuff. When using PageMethods (Google for exact def.) use something like this:

    public static object GiveExtraInfo(string id)
    { //look up data in database and return the required object }
    

    You can then do in JavaScript

    var content = PageMethods.GiveExtraInfo(/*the id you selected before */);
    

    You can now use the content whereever you like in the page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an auto-complete list that's populated when an you send an email to
I have a auto-complete textbox in which the user makes a selection. From here
I have an auto-complete drop down list, I want to make some action when
I have a Ajax auto complete extender attached to TextBox control. When the user
In my ASPX page I have an Ajax Control toolkit provided 'Auto Complete extended
I have a webservice that gets a ProductName and I need the Products that
I have a text box with auto complete extender and it works fine. How
Guys i am very new to jQuery. I have started using the auto complete
I have read several articles/questions/forums discussing the best auto-complete plugin for jQuery. After trying
I have a text box, Inside I want it to auto complete. The data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.