2009-08-19 54 views
2

我试图在ASP.NET 3.5中创建可拖动的Web部件,但事情只是不想被拖动。我已经尝试了通过使用AJAX使其与Firefox兼容的解决方法,但仍然无效。ASP.NET 3.5中的Web部件

这是代码,我有我的网页上:

<asp:WebPartManager ID="WebPartManager1" runat="server"> 
    </asp:WebPartManager> 
    <uc2:DisplayModeMenu ID="DisplayModeMenu1" runat="server" /> 
    <div> 
     <table> 
      <tr> 
       <td> 
        <asp:WebPartZone ID="SidebarZone" runat="server" HeaderText="Sidebar"> 
         <ZoneTemplate> 
          <asp:Label runat="server" ID="linksPart" title="My Links"> 
           <a href="http://www.asp.net">ASP.NET site</a> 
           <br /> 
           <a href="http://www.gotdotnet.com">GotDotNet</a> 
           <br /> 
           <a href="http://www.contoso.com">Contoso.com</a> 
           <br /> 
          </asp:Label> 
          <uc1:SearchUserControl ID="SearchUserControl1" runat="server" title="Search" /> 
         </ZoneTemplate> 
        </asp:WebPartZone> 
       </td> 
       <td> 
        <asp:WebPartZone ID="MainZone" runat="server" HeaderText="Main"> 
         <ZoneTemplate> 
          <asp:Label ID="lbl" Text="Some text" Title="Content" runat="server"></asp:Label> 
         </ZoneTemplate> 
        </asp:WebPartZone> 
       </td> 
       <td> 
        <asp:EditorZone ID="EditorZone1" runat="server"> 
         <ZoneTemplate> 
          <asp:AppearanceEditorPart ID="AppearanceEditorPart1" runat="server" /> 
          <asp:LayoutEditorPart ID="LayoutEditorPart1" runat="server" /> 
         </ZoneTemplate> 
        </asp:EditorZone> 
       </td> 
      </tr> 
     </table> 
    </div> 

我从来没有得到过拖动光标,当我将鼠标悬停在标题。 关于我可能做错什么的想法?

编辑: 我在编辑模式的网页,而不是事先浏览模式....

韩国社交协会。

回答

1

作为参考,我通过添加一个CSS到含有幅部分控制在div解决了这个问题:

<style type="text/css"> 
    .container 
    { 
     padding: 0px; 
     margin-top: 5px; 
     margin-left: 20px; 
     margin-bottom: 0px; 
     /* position: relative; */ 
     font-family: Arial, Helvetica, sans-serif; 
     font-size: 12px; 
     color: #333333; 
     height: 550px; 
     width: 990px; 
    } 
</style> 

它具有与所述位置元件做。

希望它可以帮助面临同样问题的人。