I know that I am missing something small but not really
sure what it is. I just added the configuration in the web.config file to
upgrade my project to ATLAS. Most of the controls that I have tried are working
with the exception of the AutoCompleteExtender control. I even tried debugging
the application but it never reaches the web services method.
<form id="form1" runat="server">
<atlas:ScriptManager ID="sm"
EnablePartialRendering="true" runat="server" />
<div>
<asp:TextBox ID="MyTextBox" EnableTheming="false" runat="server" />
<atlas:AutoCompleteExtender ID="autoTextBox" runat="server">
<atlas:AutoCompleteProperties Enabled="true"
MinimumPrefixLength="1" ServiceMethod="GetAllNames"
ServicePath="MyService.asmx" TargetControlID="MyTextBox" />
</atlas:AutoCompleteExtender>
<br />
<br />
<asp:DropDownList ID="DropDownList1"
runat="server" BackColor="NavajoWhite"
Font-Bold="True">
</asp:DropDownList></div>
</form>
And here is the Web
Service:
[WebMethod]
public string[] GetAllNames(string prefixText, int count)
{
ArrayList filteredList = new ArrayList();
string[] names = {"AzamSharp","Scott","Alex","Mary",
"John","Ali","Sam","Sammy",
"Sandy","Micheal","Andy","Pete","Steve","Bill"};
foreach (string name in names)
{
if (name.ToLower().StartsWith(prefixText.ToLower()))
filteredList.Add(name);
}
return (string[])filteredList.ToArray(typeof(string));
}
I tried making the same exact application using the
ATLAS project and it worked but when I migrated from the old application to
ATLAS it just did not work.
powered by IMHO 1.3