ASP.NET - dropdown extender

Asked By goldy gupta on 15-Dec-10 11:59 PM
Hello to all. i have an ajax tool that is DropDownExtender , panel and a text box..

  <asp:Panel runat="server" ID="panel1">  
                                   
     <asp:ListBox ID="lstTitles" runat="server" 
        Height="100"
        Width="100" 
        >
            <asp:ListItem Text="One" Value="One" />
            <asp:ListItem Text="Two" Value="Two" />
            <asp:ListItem Text="Three" Value="Three" />
            <asp:ListItem Text="Four" Value="Four" />
            <asp:ListItem Text="Five" Value="Five" />
        </asp:ListBox>
</asp:Panel> 
    <asp:TextBox ID="txtTitle" runat="server" />
    <cc1:DropDownExtender ID="DropDownExtender1" TargetControlID="txtTitle" DropDownControlID="panel1" runat="server">
    
    </cc1:DropDownExtender>



Its working fine but I wants that the item which i will select shoul come in the text box...how it will happen .. 
Sagar P replied to goldy gupta on 22-Dec-10 08:17 AM
You dont need to add any code for this...
TargetControlID will do it for you.....

<cc1:DropDownExtender ID="TextBox1_DropDownExtender" runat="server"
        DynamicServicePath="" Enabled="True" DropDownControlID="panelItems" TargetControlID="TextBox1">
</cc1:DropDownExtender>

http://www.dotnetcurry.com/ShowArticle.aspx?ID=167&AspxAutoDetectCookieSupport=1