前台代码:
代码如下:
<asp:GridView ID="viewIShow" runat="server" DataSourceID="ObjectDataSource1"
AllowPaging="True" AutoGenerateColumns="False"
OnRowCommand="viewIShow_RowCommand" PageSize="2"
OnPageIndexChanging="viewIShow_PageIndexChanging"
OnDataBound="viewIShow_DataBound">
<Columns>
<asp:BoundField DataField="title" HeaderText="名称" />
<asp:BoundField DataField="clicknum" HeaderText="播放次数" />
<asp:BoundField DataField="addtime" HeaderText="更新日期" />
<asp:TemplateField HeaderText="操作">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CommandName="up" CommandArgument='<%#Eval("id") %>'>晋级</asp:LinkButton><asp:LinkButton
ID="LinkButton2" runat="server" CommandName="down" CommandArgument='<%#Eval("id") %>'>降级</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
新闻热点
疑难解答
图片精选