Posted By: qwert231 | Jul 2nd @ 1:35 PM
page 1 of 1
Comments: 5 | Views: 515
I've googled and searched and checked in MSDN, and I'm not sure what I'm missing, probably something stupid.

In my .master page I have this:
            <ajax:ScriptManager runat="server" ID="SiteScriptManager" EnablePartialRendering="true" EnablePageMethods="true">
                <Services>
                    <ajax:ServiceReference Path="FeedStats.asmx" />
                </Services>
            </ajax:ScriptManager>

In my .aspx page:
    <asp:TextBox ID="TextBox1" runat="server" Width="50" />
    <cc1:AutoCompleteExtender ID="AutoCompleteExtender2" runat="server"
        TargetControlID="TextBox1"   
        ServiceMethod="GetBadgeNumbers"
        ServicePath="FeedStats.asmx"
        MinimumPrefixLength="1"
        EnableCaching="true" >
    </cc1:AutoCompleteExtender>

My .asmx:
    <WebMethod()> _
    Public Function GetBadgeNumbers(ByVal prefixText As String) As ArrayList
        Dim theseBadges() As Badge
        theseBadges = Badge.FindAll(Order.Asc("Number"))
        Return Filter(prefixText, theseBadges) 'cntName
    End Function


Nothing ever calls the webservice. The webservice works, I'm able to hit that by going to the address of the service.

Try: "~/FeedStats.asmx" maybe it dont get translated well,...
Thanks, that worked,

BUT, now the extender is under controls below my text box.

Can't help you there mate Sad

I cant reproduce the behaviour,..

Probably something you'll have to figure out on your own, but it's probably some style thats getting picked up from elsewhere on your page that is messing up the positioning.  If you use Firebug (my personal fav) you can go through the elements and see if there's anything being picked up that shouldn't be.
I've been using this trick for Ajax for a while now and it does resolve oddities most of the time...

If you're styles are loaded from the Master Page put this as the second line in your code page:

<%@ MasterType VirtualPath="~/MasterPage.master" %>

Change the name to your Master page of course.
page 1 of 1
Comments: 5 | Views: 515