还有这么用用户控件的?直接把*.ascx文件拖到你用的地方就可以了。

解决方案 »

  1.   

    *.ascx不能拖进<asp:table>当中啊.
      

  2.   

    直接拖到"table"中:
    <table id="table1" cellSpacing="0" cellPadding="0" width="100%" border="0" height="100%">
    <tr>
    <td class="main" vAlign="top" width="80%">
    <div style="WIDTH: 600px; POSITION: relative; HEIGHT: 288px" ms_positioning="GridLayout">
    </div>
    </td>
    <td class="background" width="20%" valign="top">
         <uc1:UserCon1 id="UserCon1" runat="server"></uc1:UserCon1>
    </td>
    </tr>
    </table>
      

  3.   

    asam2183(三山)
    首先感谢你对我的回复,这种方法我也是知道的,我不知道怎么样用<asp:table>或者datagrid来实现.请帮帮忙.
      

  4.   

    具体引用自定义控到DataGrid中
    就好象在模版列中引用服务端控件一样:
    <asp:TemplateColumn HeaderText="控件">
    <HeaderStyle Width="5%"></HeaderStyle> <ItemTemplate>         <uc1:UserCon1 id="UserCon1" runat="server"></uc1:UserCon1> </ItemTemplate>
    </asp:TemplateColumn>