Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am new to AJAX. I am trying to practice some examples. I am using hovermenuextender control,list box and text box like below. But list box is displaying without click in text box. How can I modify my code?

XML
</asp:ScriptManager>
 <cc1:HoverMenuExtender ID="HoverMenuExtender1" runat="server"
            TargetControlID="TextBox1" PopupControlID="ListBox1" PopupPosition="Right"
            DynamicServiceMethod="GetDynamicContent">
</cc1:HoverMenuExtender>
<asp:Label ID="Label1" runat="server" Text="which language you want to learn " ForeColor="#CC3300"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:ListBox ID="ListBox1" runat="server">
 <asp:ListItem>Choose from these language only</asp:ListItem>
  <%--  Here we are adding Item in ListBox  --%>
  <asp:ListItem>C#</asp:ListItem>
  <asp:ListItem>J#</asp:ListItem>
  <asp:ListItem>VB</asp:ListItem>
  <asp:ListItem>Java</asp:ListItem>
 </asp:ListBox>



Regards,

N.SRIRAM
Posted

1 solution

Hi,

I think you can add style="display:none" in your list box
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900