| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1033 人关注过本帖
标题:请问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
快速回复:请问repeater控件的布局方法
数据加载中...
 
   



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

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