开发者

grid view count

i have a web page wit Repeater

<asp:Repeater ID="Repeater1" runat="server">
    <HeaderTemplate>
        <th bgcolor="#666666" style="color: #FFFFFF" align="center">
            aaa
        </th>
开发者_开发百科        <th bgcolor="#666666" style="color: #FFFFFF" align="center">
            bbbs
        </th>
    </HeaderTemplate>
    <ItemTemplate>
        <td>
            <asp:HyperLink ID="hyp_dcisapp" runat="server" NavigateUrl="~/DCIS_Approv.aspx" Font-Bold="True"
                ForeColor="Black" Font-Size="Small" text-decoration="none"><%#DataBinder.Eval(Container.DataItem, "Dcisdelt")%></asp:HyperLink>
        </td>
    </ItemTemplate>
</asp:Repeater>

finally it `contains colums aaa bbb 20 30

i have a link butoon in home page

asp:LinkButton ID="LinkButton1" Text="totalCount"

how i can display this linkbutton line totalcount(50)


You can do like...

 LinkButton1.Text = "TotalCount (" + Repeater1.Items.Count.ToString() + ")";
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜