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 6872827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:58:44+00:00 2026-05-27T03:58:44+00:00

I have an AutoCompleteExtender that calls a web service. The AutoCompleteExtender works well and

  • 0

I have an AutoCompleteExtender that calls a web service. The AutoCompleteExtender works well and the Target TextBox (tb_provider1) has autocomplete functionality from the GetProviders function. I would like to call a javascript function upon selection of the autocomplete text of the TextBox (tb_provider1). I have used the OnClientItemSelected and the call is done correctly in IE9. Here is ASPX code:

<asp:AutoCompleteExtender ID="AutoComplete1" 
runat="server" ServiceMethod="GetProviders" 
ServicePath="AutoCompleteWebService.asmx" OnClientItemSelected="ProviderSelectedFunc"
TargetControlID="tb_provider1" CompletionSetCount="20" 
CompletionInterval="250" CompletionListCssClass="CompletionListCssClass" 
CompletionListItemCssClass="CompletionListItemCssClass" 
CompletionListHighlightedItemCssClass="CompletionListHighlightedItemCssClass">

And here is the javascript

function ProviderSelectedFunc(sender, args) {
        //here I know I am sending in tb_enrollingProvider1
        var temp = sender._id.toString();
        if (temp.substr(-14,13))
            alert("Testing");
    }

In IE9, the alert fires. In IE7/IE8 nothing happens. Any help?

  • 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-27T03:58:45+00:00Added an answer on May 27, 2026 at 3:58 am

    I was unaware that you could press F12 in IE9 and change the browser mode. After doing this, I used breakpoints and realized it wasn’t not getting to the javascript but that a javascript substr method was returning different results in IE8 and IE9. So the OnClientItemSelected was working and it was failing in my method call. The use of F12 in IE to debug was big here as was the use of the “substring” (instead of “substr”).

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

Sidebar

Related Questions

I have got a textbox and Ajax autocompleteextender in my web page.I have no
Have a web service that implements REST (sort of) , Client request is made
I have an ajaxtoolkit AutoCompleteExtender that has position: absolute. I have placed it inside
I have an aspx page and a asp textbox control which has ajax autoCompleteExtender.
So I have an asp:AutoCompleteExtender which works fine but is there a way to
I have the following code that gives me a an array in an autocomplete
I have two textbox in a page each uses ASP.Net Ajax Autocompleteextender control. asp:TextBox
I have a problem with web service against Internet Explorer 7 or 8 I
I am using the AJAX autocomplete add-on to the <asp:textbox> control. I have everything
I want to use AutoCompleteExtender for autocomplete in TextBox. But not getting the results.

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.