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

  • Home
  • SEARCH
  • 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 6217501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:26:20+00:00 2026-05-24T07:26:20+00:00

I have a Ajax auto complete extender attached to TextBox control. When the user

  • 0

I have a Ajax auto complete extender attached to TextBox control. When the user starts typing the suggestive options are displayed in the divsion underneath. Getting the suggestion from a webservice call. On OnClientItemSelected="GetCode" I am using the below JavaScript to get the selected suggestion text into the search box.

Now I want the ENTER click to activate the search.

If the user selects from the suggestions he is getting and clicks the enter. It works fine. It activates the search. This is the code I am using.

function GetCode(source, eventArgs) {

    var txtValue = document.getElementById('<%=txtAutoComplete.ClientID%>');
    txtValue.value = eventArgs._value;
    //$('#<%= txtAutoComplete.ClientID %>').val(eventArgs._value);
    $('#<%= ImageButton1.ClientID %>').click();
}

But The problem is if the user doesnt select from the suggestion and types some text and clicks the enter key Doesnot activate search. Yes I know that It doesnot call the GetCode Function.

I am not getting how to do this. Anyone Please help me..

I am want something exactly like in http://www.laterooms.co.uk

  • 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-24T07:26:20+00:00Added an answer on May 24, 2026 at 7:26 am

    You have to set a default button for either the form or the text field.

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

Sidebar

Related Questions

In my ASPX page I have an Ajax Control toolkit provided 'Auto Complete extended
I have two textbox in a page each uses ASP.Net Ajax Autocompleteextender control. asp:TextBox
I am using the AJAX autocomplete add-on to the <asp:textbox> control. I have everything
I have implemented the auto complete functionality using the Ajax.autocompleter function of the Scriptaculous
I am trying to utilize the Ajax Auto Complete Extender with a WCF service
I have an ASP.NET AJAX autocomplete extender with CompletionListCssClass=autocomplete_completionListElement : .autocomplete_completionListElement { width:500px; margin
I have an ajax toolkit TabContainer control on my page with a couple tabs.
I have an ajax autocomplete extender. I want to pass the value of the
I have read several articles/questions/forums discussing the best auto-complete plugin for jQuery. After trying
I have got a textbox and Ajax autocompleteextender in my web page.I have no

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.