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

The Archive Base Latest Questions

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

Can I make an ASP.NET AJAX AutoCompleteExtender use an ASP.NET MVC JsonResult rather than

  • 0

Can I make an ASP.NET AJAX AutoCompleteExtender use an ASP.NET MVC JsonResult rather than an ASMX Webservice?

I’ve got an ASP.NET AJAX Toolkit AutoCompleteExtender on an ASP.NET MVC View. It uses an JsonResult type function in my MVC Controller.

ASP.NET MVC View:

<form runat="server">
    <asp:ScriptManager
        ID="ScriptManager1"
        runat="server"
        EnableScriptGlobalization="true" />
    <ajaxToolkit:AutoCompleteExtender 
        ID="autoComplete1"
        runat="server" 
        TargetControlID="TextBox1"
        ServiceMethod="find"
        ServicePath="/thing"
        MinimumPrefixLength="1"
        CompletionInterval="1000"
        EnableCaching="true"
        CompletionSetCount="20"
        DelimiterCharacters=";"
        ShowOnlyCurrentWordInCompletionListItem="true" />
    <asp:TextBox
        ID="TextBox1"
        runat="server" />
</form>

ASP.NET MVC Controller:

<AcceptVerbs(HttpVerbs.Post)> _
Function Find(ByVal collection As FormCollection) As JsonResult
    Dim search As String = collection(0)
    Dim j As New JsonResult
    j.Data = ...
    Return j
End Function

This fails because collection.Count is 0. Also, Request.QueryString.Count is 0.

How do I pass the typed string to my Find() function?

  • 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:16:59+00:00Added an answer on May 12, 2026 at 2:16 pm

    Sadly, the ASP.NET AJAX AutoComplete Extended requires a SOAP web service.

    That said, the source is available on CodePlex, so you could probably modify it to take a JSON string.

    Personally, as I was using jQuery elsewhere on a site, I decided not to use the ASP.NET AJAX stuff and go with a jQuery plugin (jQuery.Autocomplete)

    This had the additional benefits of:

    1. Accepting a JSON string.
    2. Only requiring 2 script references (jQuery and the AutoComplete script) rather than the 7 I needed for the ASP.NET AJAX option.
    3. I can easily get minified versions of both jQuery and AutoComplete, but the ClientSide only scripts in the ASP.NET AJAX download are non-minified (unless I’ve missed something).

    Obviously if you’re already loading the framework elsewhere for other things, then your mileage may vary.

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

Sidebar

Related Questions

If I want to use ASP.Net without the Microsoft AJAX Control Toolkit or JQuery
I am developing an application with ASP.NET MVC and wish to make use of
can i make html editor of asp.net ajax 2.0/3.5 to read a rtf file
Please can you suggest me an example in classic asp and ajax to make
i can't find a way to do multiple row tabs with ASP.net ajax tab
I am using asp.net MVC to develop an application that will have ajax interactions.
i want to make a Guest posting system in ASP.NET MVC for a cooking
I want to make my ASP.Net site authentication seamless using Ajax call. So I
So, my question is, can any of the ASP.NET Ajax controls from the Control
jQuery $.ajax() sends a list of URL parameter values as params[]=..... ASP.NET MVC 3

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.