标题:请问repeater控件的布局方法
只看楼主
willam
Rank: 1
等 级:新手上路
帖 子:237
专家分:0
注 册:2007-7-13
 问题点数:0 回复次数:4 
请问repeater控件的布局方法
如图所示:

我怎么布成一行啊,,
搜索更多相关主题的帖子: repeater 控件 
2008-01-27 22:42
guoxhvip
Rank: 8Rank: 8
来 自:聖西羅南看臺
等 级:贵宾
威 望:44
帖 子:4052
专家分:135
注 册:2006-10-8
得分:0 
repeater默认不是就显示在一行吗

愛生活 && 愛編程
2008-01-27 23:53
cyyu_ryh
Rank: 8Rank: 8
等 级:贵宾
威 望:45
帖 子:1899
专家分:176
注 册:2006-10-21
得分:0 
<asp:Repeater ID="repeaterEmployees" runat="server" >
                <HeaderTemplate>     
                    </table>
                    <table class="sortable" id="tableEmployee">
                        <tr>
                            <td class="tag">
                                选择
                            </td>
                            <td class="tag">
                                所属公司
                            </td>
                            <td class="tag">
                                所属部门
                            </td>
                            <td class="tag">                                                           
                                工作状态
                            </td>
                            <td class="tag">
                                姓名
                            </td>
                            <td class="tag">
                                性别
                            </td>
                            <td class="tag">
                                年龄
                            </td>
                            <td class="tag">
                                职务
                            </td>
                            <td class="tag">
                                最后更新时间
                            </td>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr align="center" onmouseover="this.className='over'" onmouseout="this.className='listitem'">
                        <td>
                            <input type="checkbox" name="chkSelect" id="<%#Eval("Oid") %>" title="<%#Eval("Oid") %>" /></td>
                        <td>
                            <%# Eval(")%>
                        </td>
                        <td>
                            <%# Eval("Department.DepartmentName")%>
                        </td>
                        <td>
                            <%#GetEmployeeState(Eval("EmployeeState"),Eval("Oid"))%>
                            </a>
                        </td>
                        <td>
                            <asp:LinkButton ID="linkEmployeeName" runat="server" Enabled="<%#viewRole %>" Text='<%# Eval("Name") %>'
                                CommandArgument='<%# Eval("Oid") %>' CommandName="EmployeeInfomation" />
                        </td>
                        <td>
                            <%# Eval("Sex")%>
                        </td>
                        <td>
                            <%# Eval("Age")%>
                        </td>
                        <td>
                            <%# Eval("Position.Name")%>
                        </td>
                        <td>
                            <%# Server.HtmlEncode(Convert.ToString(Eval("LastUpdateTime", "{0:d}")))%>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>

有事无事都密我. MSN: cyyu_ryh@hotmail.co.jp E-mail: cyyu_ryh@
2008-01-28 10:47
willam
Rank: 1
等 级:新手上路
帖 子:237
专家分:0
注 册:2007-7-13
得分:0 
还是显示5行,,,,
2008-01-28 13:00
cyyu_ryh
Rank: 8Rank: 8
等 级:贵宾
威 望:45
帖 子:1899
专家分:176
注 册:2006-10-21
得分:0 
老大
5条数据肯定显示5行啊

有事无事都密我. MSN: cyyu_ryh@hotmail.co.jp E-mail: cyyu_ryh@
2008-01-28 14:32



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-198900-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.647970 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved