How to send parameters from AutoCompleteExtender to WebService ?


Ned White

Hi All,

There is a RadioButtonList over the textbox on my aspx page and users can
choice any of ListItems for search criteria. (Please check the following

Is it possible to send RadioButtonList1.SelectedValue to my webservice as a
parameter, over the AutoCompleteExtender.

The aspx page source is:

<cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
<br />
<asp:RadioButtonList ID="RadioButtonList1" runat="server"
<asp:ListItem Value="1">By Name</asp:ListItem>
<asp:ListItem Value="2">By Brand</asp:ListItem>
<asp:ListItem Value="3">By Country</asp:ListItem>
<asp:ListItem Value="4">By Type</asp:ListItem>
<asp:ListItem Value="5">By Model</asp:ListItem>
<asp:Literal ID="Literal1" runat="server" Text="Search"></asp:Literal>
<asp:TextBox ID="TextBox1" runat="server" Width="440px" BackColor="Beige"
Font-Size="14px" Height="23px"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Find" />
<cc1:AutoCompleteExtender ID="AutoCompleteExtender1"
ServicePath="search.asmx" MinimumPrefixLength="3"
ServiceMethod="GetNames" TargetControlID="TextBox1"
CompletionInterval="10" CompletionSetCount="5" UseContextKey="true"
EnableCaching="true" runat="server">


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question