Using The AutoCompleteExtender With ASP.Net ?

Mar 10, 2011

Basically, I'm delving into the world of the AjaxControlToolkit today, with the main aim of fulfilling my AutoComplete requirements. I've set everything up as tutorialised and am a little confused as to why things aren't working (well I have an inkling as to what may be holding me back).

I've added the AjaxControlToolkit dll to my project and in my Markup I have the following :

at the top

CODE:

then within my content

CODE:

Then in the code behind, I have my nice little function (which the breakpoint within is never reached)

CODE:

The function is never being called, for a reason I am unsure of.

Potential Issues. There are a couple of potential issues where things may be going wrong:

I've tried adding the AjaxControlToolkit dll to the Toolbar in VS (2010), but all the controls are greyed out...The GetCompletionList function (WebMethod) I have written is in the code behind the page. Could this not be called because it has to be in a Web Service perhaps? I've also just realised that my function in the code behind isn't Shared, is this required? Because the list associated with the auto complete is dynamic.

View 3 Replies


ADVERTISEMENT

Ajax - ASP.Net AutoCompleteExtender VB WebMethod Not Firing?

May 12, 2011

In a page to create new user accounts, we have a database with a little of allowable users. To streamline getting the Email address of the new user correct, we want to use an AutoComplete extended textbox.Now I know that WebMethods are working because I have a cascading-drop-down tied to web methods in another page.As I'm just starting on this page, the code is simple.The page itself:

<cc1:ToolkitScriptManager ID="ScriptManager2" runat="server"/>
<p></p> Please enter new user's Email:
<asp:TextBox ID="txtUser" runat="server" />
<cc1:AutoCompleteExtender runat="server" ID="autUser" TargetControlID="txtUser"

[code]....

I'm not even getting to the LogDebug statement. I've used all the same boilerplate code (Inherits, the 'WebService' tags, etc) that worked in the other WebMethod with the appropriate changes to the Class name but this really has me stumped.

View 1 Replies

Asp.net - AutocompleteExtender Not Working In Master Page?

Jul 3, 2010

I have a problem regarding the autocomplete extender in ASP.NET - it works fine in all pages I have, but NOT in a master page and i don't know why.

Here is my code:

<asp:TextBox runat="server" ID="txtSearch" Width="200px" CssClass="TextBoxClass"></asp:TextBox>
<cc1:AutoCompleteExtender ID="txtSearch_AutoCompleteExtender" runat="server"
TargetControlID="txtSearch"

[code]....

The problem is that GetCompletionListOggetti is never called. I repeat - it works fine on content page!

View 2 Replies

How To WCF Service External To Solution With AutoCompleteExtender

Jan 31, 2012

I've coded a WCF service that is external to the solution I wish to use it in. I'm doing this so that I can have one service that's reusable across many solutions. We've already duplicated this service many times as an asmx integral to the solution and it's not a good maintenance scenario. I'm finally able to have time to tackle gettign this working the right way.My solution (and the service) is in VS2010, Framework 4.0, vb.net.When using the webHttp..Binding binding in the endpoint, when I add the service to my solution the reference is getting added, but web.config does not get added with the system.serviceModel configuration group that is needed.[code]

View 1 Replies

Asp.net - AutoCompleteExtender WebService Fail To Be Called When Function Is Shared?

Oct 25, 2011

I had a problem (which is now fixed) but I've no idea why.I have an Ajax AutoCompleteExtender with a WebService method to populate like <WebMethod()> _
Public Shared Function populateACE(prefixText As String) As List(Of String) However this didn't work - I put a breakpoint in, and it didn't even get hit. However... <WebMethod()> _ Public Function populateACE(prefixText As String) As List(Of String) does work (the only difference being not Shared).

Fair enough, but why? If you have an instance of a class then you can access Shared methods of it; if you don't have an instance of a class then you can access Shared methods of it. So what is going on behind the scenes?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved