Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. sending parameter to webmethod - autocomplete extender

sending parameter to webmethod - autocomplete extender

Scheduled Pinned Locked Moved ASP.NET
sysadminhelpquestionlearning
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rajkumar 3
    wrote on last edited by
    #1

    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(); }

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups