How to send parameters from AutoCompleteExtender to WebService ?

Discussion in 'ASP .Net' started by Ned White, Apr 7, 2008.

  1. Ned White

    Ned White Guest

    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
    image.)
    http://img211.imageshack.us/img211/1600/sampleha9.png

    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">
    </cc1:ToolkitScriptManager>
    <br />
    <asp:RadioButtonList ID="RadioButtonList1" runat="server"
    RepeatDirection="Horizontal">
    <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:RadioButtonList>
    <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">
    </cc1:AutoCompleteExtender>
    ------------------------------------

    Thanks in advance.

    Ned
     
    Ned White, Apr 7, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michael Appelmans

    Atlas AutoCompleteExtender not working...

    Michael Appelmans, Jun 27, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    2,231
    Michael Appelmans
    Jun 27, 2006
  2. Jay
    Replies:
    0
    Views:
    935
  3. ack95

    ASP.NET AJAX AutoCompleteExtender

    ack95, Jan 17, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    528
    ack95
    Jan 17, 2007
  4. =?Utf-8?B?UmFjaGVs?=

    AJAX AutoCompleteExtender with Scrollbar

    =?Utf-8?B?UmFjaGVs?=, May 25, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    5,976
    =?Utf-8?B?UmFjaGVs?=
    May 25, 2007
  5. jean-françois labbe
    Replies:
    0
    Views:
    147
    jean-françois labbe
    May 13, 2006
Loading...

Share This Page