Results 1 to 1 of 1
Related
-
onkeypress move to next control [except when the focus is on button control] Forum: Javascript Forum
Replies: 1 -
Complete Newbie Question Forum: CGI Perl Forum
Replies: 2 -
My lay-out is complete but I need opinions Forum: Show it off!
Replies: 6
-
12-20-2010, 02:09 AM #1
auto complete extender is not working in Web user Control
hi
I am using auto complete extender and it is not working in Web user Control . But Working in Web form Please give its solution ASAP.
Cs Code
[System.Web.Services.WebMethod]
public static string[] GetSuggestions(string prefixText, int count)
{
MyDatabaseDataContext db = new MyDatabaseDataContext();
return db.Movies
.Where( m => m.Title.StartsWith(prefixText) )
.OrderBy( m => m.Title )
.Select( m => m.Title)
.Take(count)
.ToArray();
}
<asp:TextBox id="txtMovieTitle" AutoComplete="off" Runat="server" />
<ajax:AutoCompleteExtender id="ace1"
TargetControlID="txtMovieTitle"
ServiceMethod="GetSuggestions"
MinimumPrefixLength="1"
runat="server" />
Thanx
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum