Hot to: user AutoCompleteExtender in a UserControl (ascx) and place the ServiceMethod on its code-be

Posted by Shimmy on Stack Overflow See other posts from Stack Overflow or by Shimmy
Published on 2009-07-11T23:49:06Z Indexed on 2010/03/23 13:13 UTC
Read the original article Hit count: 820

Hi!

I created a AutoCompleteExtender on a TextBox that resides on a UserControl (Control.ascx file).

I don't want to create a separate class for the web method, i rather placing it in the code file (Control.ascx.cs) itself.

Is there a way?

I have successfully tried once ago placing the method on the same page but it was a page, and if ServicePath property is not set it's automatically refered to the page so it worked, now since it's a user control it doesn't even when I explicitly specify the path.

© Stack Overflow or respective owner

Related posts about autocomplete

Related posts about ajaxcontroltoolkit