复制代码 代码如下:
<asp:TemplateField HeaderText="Operation" ShowHeader="False">
<ItemStyle />
<ItemTemplate>
<table>
<tr>
<td valign="middle">
<asp:ImageButton CommandName="update" ToolTip="Update" ImageUrl="~/App_Themes/Images/edit.png"
runat="server" />
<%--<a href="ApplicationDetail.aspx?type=update&ApplicationID=<%#Eval("ApplicationID") %>">
<img src="../Themes/images/edit.png" /></a>--%>
</td>
<td valign="middle">
<asp:ImageButton CommandName="delete" ToolTip="Delete" ImageUrl="~/App_Themes/Images/del.png"
runat="server" />
</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateField>
复制代码 代码如下:
<asp:TemplateField HeaderText="View">
<ItemTemplate>
<a href="DraftVesselOrderDetail.aspx?ServiceID=<%#Eval("Number") %>&TripSelectedIndex= <%# Container.DataItemIndex %>">
<img src="../../App_Themes/Images/preview.gif" /></a>
</ItemTemplate>
</asp:TemplateField>
复制代码 代码如下:
protected void gdvOrderList_RowCommand(object sender, GridViewCommandEventArgs e)
{
switch (e.CommandName.ToLower())
{
case "view":
var serviceId = long.Parse(e.CommandArgument.ToString());
Response.Redirect("DraftOrderDetail.aspx?type=view&ServiceID=" + serviceId + "&FromPage=Order&GridPageIndex=" + serviceId);
break;
}
}
新闻热点
疑难解答
图片精选