一种可能,你的dropdownlist没在panel中

解决方案 »

  1.   

    我在vs.net中直接放入的控件,这是自动形成的html代码:
    <form id="Form1" method="post" runat="server">
    <asp:Panel id="Panel1" style="Z-INDEX: 101; LEFT: 236px; POSITION: absolute; TOP: 115px" runat="server" Width="224px" Height="155px" Enabled="False">Panel
    <asp:DropDownList id="DropDownList1" runat="server" Width="130px" Height="50px"></asp:DropDownList></asp:Panel>
    </form>
    各位看看那里不对?
      

  2.   

    我在vs.net中直接放入的控件,这是自动形成的html代码:
    <form id="Form1" method="post" runat="server">
    <asp:Panel id="Panel1" style="Z-INDEX: 101; LEFT: 236px; POSITION: absolute; TOP: 115px" runat="server" Width="224px" Height="155px" Enabled="False">Panel
    <asp:DropDownList id="DropDownList1" runat="server" Width="130px" Height="50px"></asp:DropDownList></asp:Panel>
    </form>
    各位看看那里不对?
      

  3.   

    对啊
    dropdownlist没在panel中
      

  4.   

    那怎么才在panel中,我看代码是在里面阿
      

  5.   

    你中间的那个panel没用。如果不用上面的控件,不行你试一下把panel隐藏,或许可以。
      

  6.   

    在你的页面pageLayout属性是FlowLayout还是GridLayout?如果是GridLayout,你的DropdownList的style属性中应该有一个z-index才是,或者你改为FlowLayout试试。