sending parameter to webmethod - autocomplete extender
-
hi i am using following code to auto complete educational institutes .. but my requirement is to fill educational institutes as per country id .. i am unable to send country id as parameter to web method .. can any one help .... plz ?? <asp:TextBox ID="txtKey" runat="server" CssClass="regtxtbox" MaxLength="50"></asp:TextBox> <asp:Panel runat="server" ID="myPanel1" Height="100px" ScrollBars="Vertical" style="overflow:hidden;width:50px;display:none;"> </asp:Panel> <cc1:AutoCompleteExtender ID="AutoCompleteExtenderDemo" runat="server" TargetControlID="txtKey" ServiceMethod="GetCompletionList" MinimumPrefixLength="1" CompletionInterval="1000" EnableCaching="true" CompletionSetCount="20" CompletionListElementID="myPanel1"> </cc1:AutoCompleteExtender> public static string[] GetCompletionList(String prefixText, int count) { List<String> suggestions = new List<string>(); DataTable dtSchools = new DataTable(); Education education = new Education(); //List<String> suggetions = education.GetAllSchoolsSearch("",prefixText); DataSet dsSchools = education.GetAllSchoolsSearch("", prefixText); if (dsSchools != null) { dtSchools = dsSchools.Tables[0]; } if (dtSchools != null && dtSchools.Rows != null && dtSchools.Rows.Count > 0) { foreach (DataRow dr in dtSchools.Rows) { string suggestion = dr["sschoolName"].ToString(); suggestions.Add(suggestion); } } return suggestions.ToArray(); }