我怎么在桌面上拖不动这个控件

解决方案 »

  1.   

    你需要在html视图下 写repeater给你个例子
    <table class="table" cellSpacing="0" cellPadding="0" border="0">
    <TBODY>
    <tr>
    <td align="center" style="FONT-WEIGHT: bold; FONT-SIZE: 16px; COLOR: royalblue; FONT-FAMILY: Verdana"
    height="30"><br>
    Medical Notes<br>
    &nbsp;</td>
    </tr>
    <tr>
    <td align="center"><asp:repeater id="rp" runat="server">
    <HeaderTemplate>
    <table class="table" cellpadding="0" cellpadding="0" bordercolor="#CC9966" border="1">
    <tr bgcolor="#990000" style="COLOR: #ffffcc">
    <td align="center" width="40%" align="left"><b>Date</b></td>
    <td align="center" width="60%" align="left"><b>Notes</b></td>
    </tr>
    </HeaderTemplate>
    <ItemTemplate>
    <tr width="240">
    <td align="center" width="40%"><a href='MedicalNotesdetails.aspx?id=<%# databinder.eval(container.dataitem,"medical_notesID")%>'><%# format(DataBinder.Eval(Container.DataItem, "Progress_notes_date"),"dd/MMM/yyyy") %></a>
    </td>
    <td align="left" width="60%"><%# databinder.eval(container.dataitem,"Progress_notes")%>
    </td>
    </tr>
    </ItemTemplate>
    <AlternatingItemTemplate>
    <tr width="240" bgcolor="#FFE0C0">
    <td align="center" width="40%"><a href='MedicalNotesdetails.aspx?id=<%# databinder.eval(container.dataitem,"medical_notesID")%>'><%# format(DataBinder.Eval(Container.DataItem, "Progress_notes_date"),"dd/MMM/yyyy") %></a>
    </td>
    <td align="left" width="60%"><%# databinder.eval(container.dataitem,"Progress_notes")%>
    </td>
    </tr>
    </AlternatingItemTemplate>
    <FooterTemplate>
    </table>
    </FooterTemplate> </asp:repeater></TD></TR>
    <tr>
    <td align="center"><br>
    <asp:button id="btnAdd" BorderWidth="1px" BorderColor="Black" BackColor="White" Width="40px"
    Text="Add" Runat="server"></asp:button>&nbsp;
    <asp:button id="btnBack" BorderWidth="1px" BorderColor="Black" BackColor="White" Width="40px"
    Text="Back" Runat="server"></asp:button><br>
    &nbsp;</td>
    </tr>
    </TBODY></TABLE>
      

  2.   

    <HeaderTemplate><ItemTemplate><FooterTemplate>
    就像画表格一样
      

  3.   

    body里面加上MS_POSITIONING="GridLayout",你的控件编辑状态就可以任意拖动了
      

  4.   

    <asp:Repeater id="Repeater1" runat="server">
    <HeaderTemplate>
    <table border="1" width="100%" align="center">
    </HeaderTemplate>
    <ItemTemplate>
    <tr>
    <td>
    <%# Container.DataItem %>
    </td>
    <td>
    <%# Container.DataItem %>
    </td>
    </tr>
    </ItemTemplate>
    <FooterTemplate>
    </table>
    </FooterTemplate>
    </asp:Repeater>